Skip to content

Commit

Permalink
Simplify "How to make a commit"
Browse files Browse the repository at this point in the history
Combine the two cases for "git add" into one.
Add verb "use" to "git rm" case.

Signed-off-by: Thomas Ackermann <th.acker@arcor.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Thomas Ackermann authored and Junio C Hamano committed Aug 27, 2013
1 parent ddd4dde commit d39765b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Documentation/user-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1080,19 +1080,13 @@ produce no output at that point.

Modifying the index is easy:

To update the index with the new contents of a modified file, use
To update the index with the contents of a new or modified file, use

-------------------------------------------------
$ git add path/to/file
-------------------------------------------------

To add the contents of a new file to the index, use

-------------------------------------------------
$ git add path/to/file
-------------------------------------------------

To remove a file from the index and from the working tree,
To remove a file from the index and from the working tree, use

-------------------------------------------------
$ git rm path/to/file
Expand Down

0 comments on commit d39765b

Please sign in to comment.