Skip to content

Commit c4c029a

Browse files
committed
Add Show Changes In The Compose Commit Message View as a git til
1 parent dd55565 commit c4c029a

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1010
For a steady stream of TILs from a variety of rocketeers, checkout
1111
[til.hashrocket.com](https://til.hashrocket.com/).
1212

13-
_748 TILs and counting..._
13+
_749 TILs and counting..._
1414

1515
---
1616

@@ -199,6 +199,7 @@ _748 TILs and counting..._
199199
- [Resetting A Reset](git/resetting-a-reset.md)
200200
- [Show All Commits For A File Beyond Renaming](git/show-all-commits-for-a-file-beyond-renaming.md)
201201
- [Show Changes For Files That Match A Pattern](git/show-changes-for-files-that-match-a-pattern.md)
202+
- [Show Changes In The Compose Commit Message View](git/show-changes-in-the-compose-commit-message-view.md)
202203
- [Show File Diffs When Viewing Git Log](git/show-file-diffs-when-viewing-git-log.md)
203204
- [Show List Of Most Recently Committed Branches](git/show-list-of-most-recently-committed-branches.md)
204205
- [Show The diffstat Summary Of A Commit](git/show-the-diffstat-summary-of-a-commit.md)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Show Changes In The Compose Commit Message View
2+
3+
When you execute `git commit`, you'll be dropped into your default editor
4+
and prompted to compose a commit message. By default you'll only see the
5+
status and names of the files involved in the commit.
6+
7+
To also see the line-by-line-changes in this view, you'll want to commit in
8+
verbose mode.
9+
10+
```bash
11+
$ git commit --verbose
12+
```
13+
14+
You can also set verbose mode as the default by updating your `~/.gitconfig`
15+
file.
16+
17+
```
18+
[commit]
19+
verbose = true
20+
```
21+
22+
[source](https://stackoverflow.com/questions/5875275/git-commit-v-by-default)

0 commit comments

Comments
 (0)