-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
30 lines (30 loc) · 1018 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[user]
name = David Kuo
email = [email protected]
[alias]
lg = !"git lg1"
ls = !"git ls1"
ls1 = !"git lg1 --simplify-by-decoration"
ls2 = !"git lg2 --simplify-by-decoration"
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(auto)%d%C(reset)' --abbrev-commit
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(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)- %an%C(reset)' --abbrev-commit
[core]
excludesfile = ~/.gitignore_global
whitespace = indent-with-non-tab, space-before-tab, trailing-space, cr-at-eol
autocrlf = input
pager = less -x2
[push]
default = simple
[help]
autocorrect = 1
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[rebase]
autoStash = true
autoSquash = true
[color "decorate"]
HEAD = bold magenta
branch = bold yellow
remoteBranch = yellow
stash = bold red