diff --git a/README.md b/README.md index 6ee7d32..8085e3b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_575 TILs and counting..._ +_576 TILs and counting..._ --- @@ -176,6 +176,7 @@ _575 TILs and counting..._ - [Renaming A Branch](git/renaming-a-branch.md) - [Resetting A Reset](git/resetting-a-reset.md) - [Show All Commits For A File Beyond Renaming](git/show-all-commits-for-a-file-beyond-renaming.md) +- [Show File Diffs When Viewing Git Log](git/show-file-diffs-when-viewing-git-log.md) - [Show The diffstat Summary Of A Commit](git/show-the-diffstat-summary-of-a-commit.md) - [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md) - [Staging Changes Within Vim](git/staging-changes-within-vim.md) diff --git a/git/show-file-diffs-when-viewing-git-log.md b/git/show-file-diffs-when-viewing-git-log.md new file mode 100644 index 0000000..9fee08b --- /dev/null +++ b/git/show-file-diffs-when-viewing-git-log.md @@ -0,0 +1,29 @@ +# Show File Diffs When Viewing Git Log + +Include the `-p` flag with the `git log` command to include the diffs along +with the rest of the information for each commit. Here is an example of +running this against this repository. + +```bash +$ git log -p +commit b9809a329acd8150b2474168f8faaf008f376e35 +Author: jbranchaud +Date: Wed Oct 11 07:27:53 2017 -0500 + + Add Inline Style Attributes Should Be Camel Cased as a react til + +diff --git a/README.md b/README.md +index c982f8e..6ee7d32 100644 +--- a/README.md ++++ b/README.md +@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). + For a steady stream of TILs from a variety of rocketeers, checkout + [til.hashrocket.com](https://til.hashrocket.com/). + +-_574 TILs and counting..._ ++_575 TILs and counting..._ + + --- +``` + +See `man git-log` for more details.