-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
68 lines (58 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[core]
editor = vim
pager = less
excludesfile = .gitignore
[push]
default = current
[color]
diff = auto
status = auto
branch = auto
interactive = auto
pager = true
ui = auto
[alias]
aa = add -A
pullr = pull --rebase
c = commit
ca = commit --amend
st = status -sb
standup = log --since '1 day ago' --oneline
unstage = reset HEAD
b = branch -v # verbose branch
co = checkout
nb = checkout -b
d = diff
ds = diff --staged
l = log
log = log --decorate --graph --date=short
hist = log --pretty=format:\"%Cred%h %Cblue%ad %Creset| %s%d %Cgreen[%an]\" --graph --date=short
lgbw= log --graph '--format=%h %ar %d %s'
lg = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s'
lga = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all
#this is the most commonly used one, it turns out!
l19 = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -19
# and this one can be a real lifesaver on a complex tree
lsd = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration
# log left-right; requires argument like A...B (3 dots)
lglr= log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --boundary --left-right --cherry-pick
# compact colorized git log
com = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
dirlog = log --name-status ./
[rerere]
# Remember my merges
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
enabled = true
[log]
color = true
[status]
color = auto
[pager]
color = true
[diff]
color = auto
rename = copy
[http]
sslVerify = false
[apply]
whitespace = strip