@@ -24,14 +24,15 @@ If you run this command directly after a clone, you should see something like th
2424----
2525$ git status
2626On branch master
27+ Your branch is up-to-date with 'origin/master'.
2728nothing to commit, working directory clean
2829----
2930
3031This means you have a clean working directory – in other words, there are no tracked and modified files.
3132Git also doesn't see any untracked files, or they would be listed here.
3233Finally, the command tells you which branch you're on and informs you that it has not diverged from the same branch on the server.
3334For now, that branch is always ``master'', which is the default; you won't worry about it here.
34- <<_git_branching>> will go over branches and references in detail.
35+ <<_git_branching>> will go over branches and references in detail.
3536
3637Let's say you add a new file to your project, a simple README file.
3738If the file didn't exist before, and you run `git status`, you see your untracked file like so:
@@ -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
4344On branch master
45+ Your branch is up-to-date with 'origin/master'.
4446Untracked 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
7375On branch master
76+ Your branch is up-to-date with 'origin/master'.
7477Changes 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
9497On branch master
98+ Your branch is up-to-date with 'origin/master'.
9599Changes 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
118122On branch master
123+ Your branch is up-to-date with 'origin/master'.
119124Changes 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
136141On branch master
142+ Your branch is up-to-date with 'origin/master'.
137143Changes 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
162168On branch master
169+ Your branch is up-to-date with 'origin/master'.
163170Changes 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
265272On branch master
273+ Your branch is up-to-date with 'origin/master'.
266274Changes 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
328336On branch master
337+ Your branch is up-to-date with 'origin/master'.
329338Changes 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
455466On branch master
467+ Your branch is up-to-date with 'origin/master'.
456468Changes 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
501513rm 'PROJECTS.md'
502514$ git status
503515On branch master
516+ Your branch is up-to-date with 'origin/master'.
504517Changes 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
567580On branch master
581+ Your branch is up-to-date with 'origin/master'.
568582Changes to be committed:
569583 (use "git reset HEAD <file>..." to unstage)
570584
0 commit comments