Using the `commit.template` setting, read in a commit message template for each commit. This template is commented out so the commit message author doesn't need to delete it. The template serves as a reminder on how to write a better commit message. The bullets are taken from Caleb's blog post[1]. There is no _problem_ per se -- we are writing good messages these days -- but it's handy to be reminded of things to think about. For example, people often forget to note whether there are any side effects. This message does not show on `git commit --amend`, only normal `git commit`. [1] http://bit.ly/13HWyiy
25 lines
696 B
Text
25 lines
696 B
Text
[push]
|
|
default = current
|
|
[color]
|
|
ui = auto
|
|
[alias]
|
|
aa = add --all
|
|
ap = add --patch
|
|
ca = commit --amend
|
|
ci = commit -v
|
|
co = checkout
|
|
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
|
|
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git remote prune origin && git branch -D $1' -
|
|
merge-branch = !git checkout master && git merge @{-1}
|
|
pr = !hub pull-request
|
|
st = status
|
|
up = !git fetch origin && git rebase origin/master
|
|
[core]
|
|
excludesfile = ~/.gitignore
|
|
autocrlf = input
|
|
[merge]
|
|
ff = only
|
|
[include]
|
|
path = .gitconfig.local
|
|
[commit]
|
|
template = ~/.gitmessage
|