-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
66 lines (57 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#[user]
# name =
# email =
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = vim
autocrlf = input
[color]
ui = auto
diff = auto
[alias]
a = add
amend = commit --amend
br = branch
c = commit
ca = commit --amend
ci = commit -a
co = checkout
clear = "!f(){ git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f"
d = diff
dc = diff --changed
ds = diff --staged
f = fetch
loll = log --graph --decorate --pretty=oneline --abbrev-commit
p = "!f(){ git pull \"$@\" && git submodule update --init --recursive; }; f"
m = merge
mn = merge --no-commit --no-ff
one = log --pretty=oneline
outstanding = rebase -i @{u}
st = status
unpushed = log @{u}
wc = whatchanged
wip = rebase -i @{u}
zap = fetch -p
rh = reset --hard
cl = clean -fd
fc = !git rh && git cl && git st
[branch]
autosetupmerge = true
[merge]
tool = meld
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
header = normal blink
[push]
default = matching