-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
38 lines (36 loc) · 1.17 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
[alias]
br = branch -vv
bra = branch -vv --all
co = checkout
ci = commit
ca = commit --amend
cc = rev-list HEAD --count ; count commits on current branch
cca = rev-list --all --count ; count all commits
di = diff
dis = diff --stat
diw = diff --color-words
dc = diff --cached
dcs = diff --cached --stat
dcw = diff --cached --color-words
dh = diff HEAD~
dhs = diff HEAD~ --stat
dhw = diff HEAD~ --color-words
ff = merge --ff-only
noff = merge --no-ff
fo = fetch origin
st = status -sb
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
gr = log --graph --format=compact # graph
grl = log --graph --format=line # graph line
grd = log --graph --format=detail # graph detail
gra = log --graph --format=compact --all # graph all
gral = log --graph --format=line --all # graph all line
grad = log --graph --format=detail --all # graph all in detail
type = cat-file -t
dump = cat-file -p
[pretty]
line = "%C(auto)%h%d %s %C(yellow)by %C(blue)%an %C(green)%ar"
compact = "%C(auto)%h %s %C(green)%ar%n %C(auto)%d%n"
detail = "%C(auto)%h %s%n %C(yellow)by %C(blue)%an %C(magenta)<%ae> [%G?] %C(green)%ar%n %C(auto)%d%n"
[include]
path = ~/.gitconfig_local