Re: [PATCH 06/13] Simplify "How to make a commit"
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 25, 2013, 05:05 UTC
- Message-ID
- <20130825050527.GI2882@elie.Belkin>
- In-Reply-To
- <1687455733.1090999.1377329376866.JavaMail.ngmail@webmail08.arcor-online.net>
Thomas Ackermann wrote:
Show 9 quoted lines
> --- a/Documentation/user-manual.txt > +++ b/Documentation/user-manual.txt > @@ -1080,19 +1080,14 @@ 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 add the contents of a new file to the index or update the index > +with the new contents of a modified file, use
That's a mouthful. I'd say
To update the index with the contents of a new or modified file, use
[...]
Show 6 quoted lines
> -To add the contents of a new file to the index, use > - > -------------------------------------------------- > -$ git add path/to/file > -------------------------------------------------- > -
\o/
Show 5 quoted lines
> -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
In git 2.0, (plain "rm" followed by) "git add" should work for this, too.