File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
1 . Do some code changes.
24
24
25
- 1 . Add all the changes made to git tracking (or add only ` <filename> ` or ` <directoryname> ` changes):
25
+ 1 . Use ` git status ` to view what files and directories have been changed:
26
+ ` git status `
27
+
28
+ 1 . Use whichever or these four options is appropriate to add the necessary files to git tracking:
29
+ ` git add . `
30
+ ` git add <filename> `
31
+ ` git add <filename> `
26
32
` git add -A `
27
33
34
+ 1 . Use ` git status ` to view what files and directories will be added to the commit:
35
+ ` git status `
36
+
28
37
1 . Commit the changes made to the branch:
29
38
` git commit -m <commit message> `
30
39
33
42
34
43
1 . Do some more code changes.
35
44
36
- 1 . Add all the changes made to git tracking:
45
+ 1 . Use ` git status ` to view what files and directories have been changed:
46
+ ` git status `
47
+
48
+ 1 . Use whichever or these four options is appropriate to add the necessary files to git tracking:
49
+ ` git add . `
50
+ ` git add <filename> `
51
+ ` git add <filename> `
37
52
` git add -A `
38
53
54
+ 1 . Use ` git status ` to view what files and directories will be added to the commit:
55
+ ` git status `
56
+
39
57
1 . Commit the changes made to the branch:
40
58
` git commit -m <commit message> `
41
59
You can’t perform that action at this time.
0 commit comments