summaryrefslogtreecommitdiff
path: root/Documentation/gittutorial-2.txt
diff options
context:
space:
mode:
authorStefan Naewe <stefan.naewe@gmail.com>2014-11-13 10:40:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-11-13 18:53:50 (GMT)
commit8942821ec046238b6cea12e6dd4dfa7ba51c133e (patch)
treed73fe315e9318e9f331ce8a7fc69ae91a39012e4 /Documentation/gittutorial-2.txt
parent7fa1365c54c28b3cd9375539f381b54061a1880d (diff)
downloadgit-8942821ec046238b6cea12e6dd4dfa7ba51c133e.zip
git-8942821ec046238b6cea12e6dd4dfa7ba51c133e.tar.gz
git-8942821ec046238b6cea12e6dd4dfa7ba51c133e.tar.bz2
gittutorial: fix output of 'git status'
'git status' doesn't output leading '#'s these days. Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gittutorial-2.txt')
-rw-r--r--Documentation/gittutorial-2.txt23
1 files changed, 12 insertions, 11 deletions
diff --git a/Documentation/gittutorial-2.txt b/Documentation/gittutorial-2.txt
index 3109ea8..24318a0 100644
--- a/Documentation/gittutorial-2.txt
+++ b/Documentation/gittutorial-2.txt
@@ -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,