提交 8942821e 编写于 作者: S Stefan Naewe 提交者: Junio C Hamano

gittutorial: fix output of 'git status'

'git status' doesn't output leading '#'s these days.
Signed-off-by: NStefan Naewe <stefan.naewe@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 7fa1365c
......@@ -368,17 +368,18 @@ situation:
------------------------------------------------
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: closing.txt
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
#
# modified: file.txt
#
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: closing.txt
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: file.txt
------------------------------------------------
Since the current state of closing.txt is cached in the index file,
......
......@@ -107,14 +107,15 @@ summary of the situation with 'git status':
------------------------------------------------
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: file1
# modified: file2
# modified: file3
#
On branch master
Changes to be committed:
Your branch is up-to-date with 'origin/master'.
(use "git reset HEAD <file>..." to unstage)
modified: file1
modified: file2
modified: file3
------------------------------------------------
If you need to make any further adjustments, do so now, and then add any
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册