/
.gitconfig
100 lines (100 loc) · 2.78 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[core]
editor = vim
filemode = true
[user]
name = Vincent Composieux
email = vincent@composieux.fr
signingkey = 7306974ABA6382AC
[commit]
gpgsign = true
[gpg]
program = gpg1
[color]
branch = auto
diff = auto
status = auto
ui = true
[color "status"]
added = green bold
changed = cyan bold
untracked = yellow bold
[color "branch"]
current = cyan bold
local = yellow
remote = green
[alias]
a = add
aa = add --all :/
authors = shortlog -sn --no-merges
b = branch -avv
bd = branch -d
bm = branch -m
brd = !git branch --merged | grep -v master && echo "Type 'git brdf' to delete all these branches"
brdf = !git branch --merged | grep -v master | xargs git branch -d
ci = commit
cia = commit --amend
ciaa = commit --all --amend
ciaan = commit --all --amend --no-edit
cian = commit --amend --no-edit
co = checkout
com = checkout master
contains = branch -avv --contains
d = diff --word-diff=color
di = diff --staged --word-diff=color
discard = checkout HEAD --
e = config --local user.email
f = fetch --prune --all
fd = filter-branch --subdirectory-filter
fm = !git f && git m
h = show HEAD --word-diff=color
hf = show HEAD --name-only
l = log --oneline --decorate
laf = log --oneline --decorate --follow --all --
lag = log --oneline --decorate --graph --all
lc = log --oneline --decorate --graph --left-right
lch = !git log --oneline --decorate --graph --left-right HEAD...$1
lf = log --oneline --decorate --follow --
lga = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset%s %Cgreen(%an %cd)%Creset' --abbrev-commit --date=iso
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
m = merge
n = config --local user.name
r = rebase
ri = rebase --interactive
rc = rebase --continue
ra = rebase --abort
rmcommit = !git rebase --onto $1^ $1
rs = rebase --skip
rv = remote -v
s = status -sb
su = submodule update --init --recursive
supgrade = submodule foreach 'git f && git co FETCH_HEAD'
t = tag
td = tag -d
unstage = reset HEAD --
up = push origin
[push]
default = tracking
[diff]
renames = copies
[rerere]
enabled = true
[blame]
date = short
[status]
submodulesummary = true
relativePaths = false
showUntrackedFiles = all
[notes]
rewriteRef = refs/notes/*
[merge]
defaultToUpstream = true
[advice]
statusHints = false
pushNonFastForward = false
implicitIdentity = false
detachedHead = false
[credential]
helper = cache --timeout 7200
[pager]
diff = diff-so-fancy | less --tabs=1,5 -RFX
show = diff-so-fancy | less --tabs=1,5 -RFX