Skip to content

Commit 3f9540c

Browse files
committed
Fix issue progit#554: The output of 'git status' is out-of-date
1 parent 3f34aa2 commit 3f9540c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

book/02-git-basics/sections/recording-changes.asc

+14
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ If you run this command directly after a clone, you should see something like th
2424
----
2525
$ git status
2626
On branch master
27+
Your branch is up-to-date with 'origin/master'.
2728
nothing to commit, working directory clean
2829
----
2930

@@ -41,6 +42,7 @@ If the file didn't exist before, and you run `git status`, you see your untracke
4142
$ echo 'My Project' > README
4243
$ git status
4344
On branch master
45+
Your branch is up-to-date with 'origin/master'.
4446
Untracked files:
4547
(use "git add <file>..." to include in what will be committed)
4648
@@ -71,6 +73,7 @@ If you run your status command again, you can see that your README file is now t
7173
----
7274
$ git status
7375
On branch master
76+
Your branch is up-to-date with 'origin/master'.
7477
Changes to be committed:
7578
(use "git reset HEAD <file>..." to unstage)
7679
@@ -92,6 +95,7 @@ If you change a previously tracked file called `CONTRIBUTING.md` and then run yo
9295
----
9396
$ git status
9497
On branch master
98+
Your branch is up-to-date with 'origin/master'.
9599
Changes to be committed:
96100
(use "git reset HEAD <file>..." to unstage)
97101
@@ -116,6 +120,7 @@ Let's run `git add` now to stage the `CONTRIBUTING.md` file, and then run `git s
116120
$ git add CONTRIBUTING.md
117121
$ git status
118122
On branch master
123+
Your branch is up-to-date with 'origin/master'.
119124
Changes to be committed:
120125
(use "git reset HEAD <file>..." to unstage)
121126
@@ -134,6 +139,7 @@ However, let's run `git status` one more time:
134139
$ vim CONTRIBUTING.md
135140
$ git status
136141
On branch master
142+
Your branch is up-to-date with 'origin/master'.
137143
Changes to be committed:
138144
(use "git reset HEAD <file>..." to unstage)
139145
@@ -160,6 +166,7 @@ If you modify a file after you run `git add`, you have to run `git add` again to
160166
$ git add CONTRIBUTING.md
161167
$ git status
162168
On branch master
169+
Your branch is up-to-date with 'origin/master'.
163170
Changes to be committed:
164171
(use "git reset HEAD <file>..." to unstage)
165172
@@ -263,6 +270,7 @@ If you run your `git status` command, you once again see something like this:
263270
----
264271
$ git status
265272
On branch master
273+
Your branch is up-to-date with 'origin/master'.
266274
Changes to be committed:
267275
(use "git reset HEAD <file>..." to unstage)
268276
@@ -326,6 +334,7 @@ $ git add CONTRIBUTING.md
326334
$ echo '# test line' >> CONTRIBUTING.md
327335
$ git status
328336
On branch master
337+
Your branch is up-to-date with 'origin/master'.
329338
Changes to be committed:
330339
(use "git reset HEAD <file>..." to unstage)
331340
@@ -409,6 +418,8 @@ The editor displays the following text (this example is a Vim screen):
409418
# Please enter the commit message for your changes. Lines starting
410419
# with '#' will be ignored, and an empty message aborts the commit.
411420
# On branch master
421+
# Your branch is up-to-date with 'origin/master'.
422+
#
412423
# Changes to be committed:
413424
# new file: README
414425
# modified: CONTRIBUTING.md
@@ -453,6 +464,7 @@ Adding the `-a` option to the `git commit` command makes Git automatically stage
453464
----
454465
$ git status
455466
On branch master
467+
Your branch is up-to-date with 'origin/master'.
456468
Changes not staged for commit:
457469
(use "git add <file>..." to update what will be committed)
458470
(use "git checkout -- <file>..." to discard changes in working directory)
@@ -501,6 +513,7 @@ $ git rm PROJECTS.md
501513
rm 'PROJECTS.md'
502514
$ git status
503515
On branch master
516+
Your branch is up-to-date with 'origin/master'.
504517
Changes to be committed:
505518
(use "git reset HEAD <file>..." to unstage)
506519
@@ -565,6 +578,7 @@ In fact, if you run something like this and look at the status, you'll see that
565578
$ git mv README.md README
566579
$ git status
567580
On branch master
581+
Your branch is up-to-date with 'origin/master'.
568582
Changes to be committed:
569583
(use "git reset HEAD <file>..." to unstage)
570584

0 commit comments

Comments
 (0)