Skip to content

Commit

Permalink
Merge pull request #922 from gmarmstrong/patch-1
Browse files Browse the repository at this point in the history
Remove "this can be confusing, because"
  • Loading branch information
ben authored Nov 6, 2017
2 parents e16e0d4 + eddf26e commit eec6e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/02-git-basics/sections/recording-changes.asc
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ index 0000000..03902a1
----

It's important to note that `git diff` by itself doesn't show all changes made since your last commit -- only changes that are still unstaged.
This can be confusing, because if you've staged all of your changes, `git diff` will give you no output.
If you've staged all of your changes, `git diff` will give you no output.

For another example, if you stage the `CONTRIBUTING.md` file and then edit it, you can use `git diff` to see the changes in the file that are staged and the changes that are unstaged.
If our environment looks like this:
Expand Down

0 comments on commit eec6e0d

Please sign in to comment.