-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgitconfig
49 lines (49 loc) · 1.23 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[include]
# For local git config
path = ~/.gitconfig.local
[color]
diff = auto
status = auto
branch = auto
ui = auto
[core]
excludesfile = ~/.gitignore
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
last = log -1 HEAD
unstage = reset HEAD --
br = branch
st = status
ci = commit
co = checkout
cp = cherry-pick
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
head = !git l -1
h = !git head
r = !git --no-pager l -20
ra = !git r --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
l = log --graph --abbrev-commit --date=relative
la = !git l --all
div = divergence
gn = goodness
gnc = goodness --cached
fa = fetch --all
pom = push origin master
b = branch
undo = reset --soft HEAD^
chomp = reset --hard HEAD~
[format]
;pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset
pretty=%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset
[merge]
tool = vimdiff
[push]
default = current
; [pull]
; default = current