Skip to content

Commit bf3478d

Browse files
author
Junio C Hamano
committed
Tutorial-2: Adjust git-status output to recent reality.
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 953202a commit bf3478d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Documentation/tutorial-2.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -352,24 +352,23 @@ situation:
352352

353353
------------------------------------------------
354354
$ git status
355-
#
356-
# Added but not yet committed:
357-
# (will commit)
355+
# On branch master
356+
# Changes to be committed:
357+
# (use "git reset HEAD <file>..." to unstage)
358358
#
359359
# new file: closing.txt
360360
#
361-
#
362-
# Changed but not added:
363-
# (use "git add file1 file2" to include for commit)
361+
# Changed but not updated:
362+
# (use "git add <file>..." to update what will be committed)
364363
#
365364
# modified: file.txt
366365
#
367366
------------------------------------------------
368367

369368
Since the current state of closing.txt is cached in the index file,
370-
it is listed as "added but not yet committed". Since file.txt has
369+
it is listed as "Changes to be committed". Since file.txt has
371370
changes in the working directory that aren't reflected in the index,
372-
it is marked "changed but not added". At this point, running "git
371+
it is marked "changed but not updated". At this point, running "git
373372
commit" would create a commit that added closing.txt (with its new
374373
contents), but that didn't modify file.txt.
375374

0 commit comments

Comments
 (0)