From c4c029a8a29758b874f20905f2c99689acdc38b6 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 30 Jan 2019 12:37:01 -0600 Subject: [PATCH] Add Show Changes In The Compose Commit Message View as a git til --- README.md | 3 ++- ...nges-in-the-compose-commit-message-view.md | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 git/show-changes-in-the-compose-commit-message-view.md diff --git a/README.md b/README.md index 9342623..7bf773c 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/). -_748 TILs and counting..._ +_749 TILs and counting..._ --- @@ -199,6 +199,7 @@ _748 TILs and counting..._ - [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 Changes For Files That Match A Pattern](git/show-changes-for-files-that-match-a-pattern.md) +- [Show Changes In The Compose Commit Message View](git/show-changes-in-the-compose-commit-message-view.md) - [Show File Diffs When Viewing Git Log](git/show-file-diffs-when-viewing-git-log.md) - [Show List Of Most Recently Committed Branches](git/show-list-of-most-recently-committed-branches.md) - [Show The diffstat Summary Of A Commit](git/show-the-diffstat-summary-of-a-commit.md) diff --git a/git/show-changes-in-the-compose-commit-message-view.md b/git/show-changes-in-the-compose-commit-message-view.md new file mode 100644 index 0000000..f90e359 --- /dev/null +++ b/git/show-changes-in-the-compose-commit-message-view.md @@ -0,0 +1,22 @@ +# Show Changes In The Compose Commit Message View + +When you execute `git commit`, you'll be dropped into your default editor +and prompted to compose a commit message. By default you'll only see the +status and names of the files involved in the commit. + +To also see the line-by-line-changes in this view, you'll want to commit in +verbose mode. + +```bash +$ git commit --verbose +``` + +You can also set verbose mode as the default by updating your `~/.gitconfig` +file. + +``` +[commit] + verbose = true +``` + +[source](https://stackoverflow.com/questions/5875275/git-commit-v-by-default)