-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig.extra
86 lines (80 loc) · 2.34 KB
/
gitconfig.extra
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
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
[alias]
st = status
co = checkout
ci = commit
br = branch
fe = fetch
sb = show-branch
cp = cherry-pick
sg = diff --staged
oneline = log --format=oneline
HEAD = log -1 --format=oneline
hard-upstream-reset = reset --hard @{u}
amend-branch-based-on = "!f() { git rebase -i $(git merge-base HEAD "$1"); }; f"
show-merge = "!f() { git diff "$1^" "$1"; }; f"
subdo = submodule foreach git
wdiff = diff --word-diff=color
; diff-image = '!f() { cd -- "${GIT_PREFIX:-.}"; GIT_DIFF_IMAGE_ENABLED=1 git diff "$@"; }; f'
diff-img = difftool -x 'compare -alpha copy \"$LOCAL\" \"$REMOTE\" png:- | montage -mode concatenate \"$LOCAL\" png:- \"$REMOTE\" png:- | display -title \"$BASE: Local | Diff | Remote\" png:-'
lg = log --graph \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit --date=relative
tomerge = log --stat --reverse --topo-order ..@{upstream}
topush = log --stat --reverse --topo-order @{upstream}..
root = rev-parse --show-toplevel
x-submodule-reset = submodule foreach 'git reset --hard $sha1'
x-submodule-attach = "submodule foreach \
'branch=$(git config -f $toplevel/.gitmodules submodule.$name.branch); \
hash=$(git rev-parse HEAD); \
test -z $branch && branch=master; \
git checkout -B $branch $hash'"
x-submodule-behind = !git subdo status -sb | grep --color=auto -B 1 behind
[core]
editor = nvim
excludesfile = ~/.ignore-patterns
[merge]
defaultToUpstream = 1
conflictStyle = diff3
[rerere]
enabled = 1
[branch]
autosetuprebase = remote
[push]
# Push to whatever is set up as upstream, even with different branch names.
default = upstream
[fetch]
prune = 1
[svn]
rmdir = 1
[diff]
mnemonicprefix = true
[diff "infinityengine"]
textconv = ieparse.py
[url "http://code.qt.io/git/qt/"]
insteadOf = qt:
[url "http://code.qt.io/git/qt-labs/"]
insteadOf = qtl:
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "[email protected]:"]
pushInsteadOf = kde:
[url "https://github.com/"]
insteadOf = gh:
[url "[email protected]:"]
pushInsteadOf = gh:
[url "[email protected]:"]
insteadOf = bb:
[url "[email protected]:"]
insteadOf = gl:
[filter "lfs"]
required = true
smudge = git-lfs smudge %f
clean = git-lfs clean %f
process = git-lfs filter-process
# vim: filetype=gitconfig:noet