gitconfig, gitignore & commit template message added
[dotfiles] / .gitconfig
1 [user]
2 name = patrick nsukami
3 email = ndkpatt@gmail.com
4
5 [core]
6 excludesfile = /home/nsukami/.gitignore
7 editor = emacs
8 autocrlf = input
9
10 [alias]
11 lol = log --graph --decorate --pretty=oneline --abbrev-commit
12 lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
13 lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
14 lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
15 lg = !"git lg1"
16 undo-commit = reset --soft HEAD^
17 undo-add = reset HEAD
18 assume-unchanged = update-index --assume-unchanged
19 delete-local-branch = branch -d
20 create-branch = checkout -b
21 modify-commit-message = commit --amend
22 show-patch = apply --stat
23 check-patch = apply --check
24
25
26 [color]
27 ui = always
28 branch = auto
29 diff = auto
30 interactive = auto
31 status = auto
32
33 [commit]
34 template = /home/patrick/.gitcommitmessagetemplate.txt