-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
74 lines (72 loc) · 2.37 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
[user]
name = Thomas Faingnaert
useConfigOnly = true
[merge]
conflictstyle = diff3
tool = nvimdiff
autoStash = true
[mergetool]
keepBackup = false
prompt = false
[diff]
colorMoved = default
tool = nvimdiff
[difftool]
prompt = false
[alias]
a = add
aa = add --all
br = branch
ci = commit
cia = commit --amend
co = checkout
d = diff
dc = diff --cached
fa = fetch --all
gone = !"gone() { git fetch --all --prune >/dev/null; git branch -vv | grep -F ': gone]' | sed 's/^\\+//' | awk '{ print $1 }'; }; gone"
gonep = !"gonep() { git worktree prune; git gone | xargs git branch -D; }; gonep"
hotmail = config user.email [email protected]
l = log --abbrev-commit --decorate --date=relative --format=tformat:'%C(bold blue)%h%C(reset) - %C(dim white)%an%C(reset) %C(bold green)(%ar)%C(reset) - %C(white)%s%C(reset) %C(bold yellow)%d%C(reset)'
lg = l --graph
m = merge
mt = mergetool
pl = pull
pr = !"pr() { git fetch $(git remote | grep ^upstream || echo origin) pull/$1/head:pr/$1 && git checkout pr/$1; }; pr"
ps = push
psu = push --set-upstream origin HEAD
squash = !"squash() { git reset --soft "$1" && git commit; }; squash"
rb = rebase
rbi = rebase --interactive
st = status
ugent = config user.email [email protected]
ver = describe --dirty='+' --abbrev=40 --match 'v*' --always
wc = log --abbrev-commit --decorate --date=relative --format=tformat:'%C(bold blue)%h%C(reset) - %C(dim white)%an%C(reset) %C(bold green)(%ar)%C(reset) - %C(white)%s%C(reset) %C(bold yellow)%d%C(reset)' --patch --perl-regexp --author='^((?!Thomas Faingnaert|tfaingna).*)$'
wta = !"wta() { DIR="../$( echo "$1" | tr / -)"; git worktree add "$DIR" origin/master -b "$1"; }; wta"
wtl = worktree list
wtp = worktree prune
wn = !"wn() { git l $1@{1}..$1@{0} \"$@\"; }; wn"
[core]
excludesfile = ~/.gitignore_global
pager = delta
attributesfile = ~/.gitattributes
[interactive]
diffFilter = delta --color-only
[delta]
file-decoration-style = blue box
file-style = blue
hunk-header-decoration-style = blue underline
max-line-length = 0
minus-style = syntax auto
navigate = true
side-by-side = true
syntax-theme = OneHalfDark
wrap-max-lines = unlimited
[filter "nbstripout"]
clean = \"/usr/bin/python3\" -m nbstripout
smudge = cat
[diff "ipynb"]
textconv = \"/usr/bin/python3\" -m nbstripout -t
[diff "json"]
textconv = \"/usr/bin/python3\" -m json.tool
[rebase]
autoStash = true