Skip to content

Commit d39765b

Browse files
tacker66gitster
authored andcommitted
Simplify "How to make a commit"
Combine the two cases for "git add" into one. Add verb "use" to "git rm" case. Signed-off-by: Thomas Ackermann <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ddd4dde commit d39765b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Documentation/user-manual.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,19 +1080,13 @@ produce no output at that point.
10801080

10811081
Modifying the index is easy:
10821082

1083-
To update the index with the new contents of a modified file, use
1083+
To update the index with the contents of a new or modified file, use
10841084

10851085
-------------------------------------------------
10861086
$ git add path/to/file
10871087
-------------------------------------------------
10881088

1089-
To add the contents of a new file to the index, use
1090-
1091-
-------------------------------------------------
1092-
$ git add path/to/file
1093-
-------------------------------------------------
1094-
1095-
To remove a file from the index and from the working tree,
1089+
To remove a file from the index and from the working tree, use
10961090

10971091
-------------------------------------------------
10981092
$ git rm path/to/file

0 commit comments

Comments
 (0)