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>
Stefan Naewe committed
Nov 13, 2014 at 10:40 UTC
8942821ec046238b6cea12e6dd4dfa7ba51c133e
2 files changed
+21
-19
Documentation/gittutorial-2.txt
+12
-11
@@ -368,17 +368,18 @@ situation:
368
369
------------------------------------------------
370
$ git status
371
-# On branch master
372
-# Changes to be committed:
373
-# (use "git reset HEAD <file>..." to unstage)
374
-#
375
-# new file: closing.txt
376
-#
377
-# Changes not staged for commit:
378
-# (use "git add <file>..." to update what will be committed)
379
-#
380
-# modified: file.txt
381
-#
371
+On branch master
372
+Changes to be committed:
373
+ (use "git reset HEAD <file>..." to unstage)
374
+
375
+ new file: closing.txt
376
+
377
+Changes not staged for commit:
378
+ (use "git add <file>..." to update what will be committed)
379
+ (use "git checkout -- <file>..." to discard changes in working directory)
380
+
381
+ modified: file.txt
382
+
383
------------------------------------------------
384
385
Since the current state of closing.txt is cached in the index file,
Documentation/gittutorial.txt
+9
-8
@@ -107,14 +107,15 @@ summary of the situation with 'git status':
107
108
------------------------------------------------
109
$ git status
110
-# On branch master
111
-# Changes to be committed:
112
-# (use "git reset HEAD <file>..." to unstage)
113
-#
114
-# modified: file1
115
-# modified: file2
116
-# modified: file3
117
-#
110
+On branch master
111
+Changes to be committed:
112
+Your branch is up-to-date with 'origin/master'.
113
+ (use "git reset HEAD <file>..." to unstage)
114
+
115
+ modified: file1
116
+ modified: file2
117
+ modified: file3
118
+
119
------------------------------------------------
120
121
If you need to make any further adjustments, do so now, and then add any