Skip to content

Commit

Permalink
Merge branch 'sn/tutorial-status-output-example'
Browse files Browse the repository at this point in the history
* sn/tutorial-status-output-example:
  gittutorial: fix output of 'git status'
  • Loading branch information
gitster committed Nov 19, 2014
2 parents bfd6b53 + 8942821 commit eeb92d7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
23 changes: 12 additions & 11 deletions Documentation/gittutorial-2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
17 changes: 9 additions & 8 deletions Documentation/gittutorial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eeb92d7

Please sign in to comment.