-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig
38 lines (38 loc) · 848 Bytes
/
.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
[core]
autocrlf = input
excludesfile = ~/.gitignore
[push]
default = current
[alias]
cleanhouse = ! echo "Deleting old branches" && git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
d = difftool
m = mergetool
pu = push -u
[diff]
tool = vimdiff
[include]
path = ~/.gitconfig.personal
[difftool]
prompt = false
[difftool "vimdiff"]
cmd = vim -f -d -c \"wincmd l\" -c 'cd \"$GIT_PREFIX\"' \"$LOCAL\" \"$REMOTE\"
[merge]
tool = vim_mergetool
conflictStyle = diff3
[mergetool "vim_mergetool"]
cmd = vim -f -c "MergetoolStart" "$MERGED" "$BASE" "$LOCAL" "$REMOTE"
trustExitCode = true
[mergetool]
prompt = false
[hub]
protocol = https
[interactive]
singleKey = true
[pull]
rebase = true
[rebase]
autoStash = true
[commit]
template = ~/dotfiles/.gitcommit.md
[init]
defaultBranch = main