-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand.txt
122 lines (94 loc) · 3.9 KB
/
command.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Administrator@E7440-111816 MINGW64 ~
$ cd desktop
Administrator@E7440-111816 MINGW64 ~/desktop
$ echo "# basic_repo" >> README.md
Administrator@E7440-111816 MINGW64 ~/desktop
$ git init
Initialized empty Git repository in C:/Users/Administrator/Desktop/.git/
Administrator@E7440-111816 MINGW64 ~/desktop (master)
$ git add README.md
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
Administrator@E7440-111816 MINGW64 ~/desktop (master)
$ clear
Administrator@E7440-111816 MINGW64 ~/desktop
$ pwd
/c/Users/Administrator/desktop
Administrator@E7440-111816 MINGW64 ~/desktop
$ mkdir basic_repo
Administrator@E7440-111816 MINGW64 ~/desktop
$ cd basic_repo
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo
$ git init
Initialized empty Git repository in C:/Users/Administrator/Desktop/basic_repo/.git/
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ touch index.html
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ touch styl.css
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ touch command.txt
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git add .
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git commit -m "1st commit"
[master (root-commit) 1fa7d53] 1st commit
3 files changed, 16 insertions(+)
create mode 100644 command.txt
create mode 100644 index.html
create mode 100644 styl.css
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git remote add origin https://github.com/Dan8816/basic_repo.git
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git push -u origin master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 528 bytes | 264.00 KiB/s, done.
Total 5 (delta 0), reused 0 (delta 0)
To https://github.com/Dan8816/basic_repo.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git commit -m "2nd commit"
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
modified: index.html
modified: styl.css
Untracked files:
roblox.jpg
no changes added to commit
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git add .
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git committ -m "2nd commit"
git: 'committ' is not a git command. See 'git --help'.
The most similar command is
commit
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git commit -m "2nd commit"
[master a5cbe60] 2nd commit
3 files changed, 4 insertions(+)
create mode 100644 roblox.jpg
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git remote add origin https://github.com/Dan8816/basic_repo.git
fatal: remote origin already exists.
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$ git push -u origin master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 78.06 KiB | 15.61 MiB/s, done.
Total 5 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/Dan8816/basic_repo.git
1fa7d53..a5cbe60 master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Administrator@E7440-111816 MINGW64 ~/desktop/basic_repo (master)
$
1. created remote repos
2. created local dir, within it created an html, css, and txt files
3. added a local repos wihtin new dir, added new files to stage, committed files and pushed to remote repo
4. made changes to html, css, and added a jpg
5. added changed files to stage, then committed files to push to existing origin location in remote repos
6. pushed changed files to remote repos