replace reference to git-rm with git-reset in git-commit doc
The message in git-commit suggesting to use 'git rm --cached' to unstage is just plain wrong. It really should mention 'git reset'. Suggested by Jan Hudec. Signed-off-by: Jing Xue <jingxue@digizenstudio.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -224,6 +224,7 @@ See Also
|
|||||||
--------
|
--------
|
||||||
gitlink:git-status[1]
|
gitlink:git-status[1]
|
||||||
gitlink:git-rm[1]
|
gitlink:git-rm[1]
|
||||||
|
gitlink:git-reset[1]
|
||||||
gitlink:git-mv[1]
|
gitlink:git-mv[1]
|
||||||
gitlink:git-commit[1]
|
gitlink:git-commit[1]
|
||||||
gitlink:git-update-index[1]
|
gitlink:git-update-index[1]
|
||||||
|
@ -154,10 +154,13 @@ EXAMPLES
|
|||||||
--------
|
--------
|
||||||
When recording your own work, the contents of modified files in
|
When recording your own work, the contents of modified files in
|
||||||
your working tree are temporarily stored to a staging area
|
your working tree are temporarily stored to a staging area
|
||||||
called the "index" with gitlink:git-add[1]. Removal
|
called the "index" with gitlink:git-add[1]. A file can be
|
||||||
of a file is staged with gitlink:git-rm[1]. After building the
|
reverted back, only in the index but not in the working tree,
|
||||||
state to be committed incrementally with these commands, `git
|
to that of the last commit with `git-reset HEAD -- <file>`,
|
||||||
commit` (without any pathname parameter) is used to record what
|
which effectively reverts `git-add` and prevents the changes to
|
||||||
|
this file from participating in the next commit. After building
|
||||||
|
the state to be committed incrementally with these commands,
|
||||||
|
`git commit` (without any pathname parameter) is used to record what
|
||||||
has been staged so far. This is the most basic form of the
|
has been staged so far. This is the most basic form of the
|
||||||
command. An example:
|
command. An example:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user