Skip to content

Commit 770972e

Browse files
authored
Update 11 Git Lab Workflow.md
1 parent 00e8a19 commit 770972e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

0 General/11 Git Lab Workflow.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@
2222

2323
1. Do some code changes.
2424

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>`
2632
`git add -A`
2733

34+
1. Use `git status` to view what files and directories will be added to the commit:
35+
`git status`
36+
2837
1. Commit the changes made to the branch:
2938
`git commit -m <commit message>`
3039

@@ -33,9 +42,18 @@
3342

3443
1. Do some more code changes.
3544

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>`
3752
`git add -A`
3853

54+
1. Use `git status` to view what files and directories will be added to the commit:
55+
`git status`
56+
3957
1. Commit the changes made to the branch:
4058
`git commit -m <commit message>`
4159

0 commit comments

Comments
 (0)