-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
93 lines (93 loc) · 2.38 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
[user]
email = [email protected]
name = Johannes Plunien
[color]
branch = auto
interactive = auto
status = auto
ui = auto
[alias]
bdm = "!git branch --merged | egrep -v '(^\\*|master|develop)' | xargs git branch -d"
br = branch
cfgmail = config user.email
ci = commit
co = checkout
cp = cherry-pick
dc = svn dcommit
di = diff
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
prunelocal = "!for branch in $(git branch --merged | grep -v develop); do git branch -d $branch; done"
resetns = !git stash save --keep-index && git stash drop
st = status
staged = diff --cached
sy = remote update
tagx = log --tags --simplify-by-decoration --pretty='format:%ai %d'
up = svn rebase --all
w = whatchanged
wtf = !git-wtf
diff-image = "!f() { cd -- \"${GIT_PREFIX:-.}\"; GIT_DIFF_IMAGE_ENABLED=1 git diff \"$@\"; }; f"
[core]
excludesfile = ~/.gitignore-global
legacyheaders = false
pager = delta
attributesfile = ~/.gitattributes
[diff]
rename = copy
renamelimit = 0
[merge]
tool = opendiff
[format]
numbered = auto
[repack]
usedeltabaseoffset = true
[svn]
rmdir = true
[cpan-import]
backpan = true
[github-import]
remote = origin
[help]
autocorrect = -1
[push]
default = tracking
[apply]
whitespace = nowarn
[branch]
autosetuprebase = always
[pull]
rebase = true
[http]
sslVerify = false
[grep]
extendedRegexp = true
lineNumber = true
[log]
decorate = short
[filter "lfs"]
clean = git-lfs clean -- %f
process = git-lfs filter-process
required = true
smudge = git-lfs smudge -- %f
[url "[email protected]:"]
insteadOf = https://git.aptumtek.com/
[url "[email protected]:"]
insteadOf = https://github.com/
[interactive]
diffFilter = delta --color-only
[delta]
syntax-theme = GitHub
features = line-numbers decorations
[includeIf "gitdir:~/Development/work/"]
path = ~/Development/work/git.config
[includeIf "gitdir:~/ios/"]
path = ~/ios/git.config
[protocol]
version = 2
[gitreview]
remote = origin
notopic = true
[init]
defaultBranch = main
[diff "image"]
command = /usr/local/bin/git_diff_image