-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
39 lines (39 loc) · 1.07 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
[user]
email = kubuxu@protocol.ai
name = Jakub Sztandera
signingkey = C919C8748A8FFC2B8D3EEEFA9A9AF56F8B3879BA
[push]
default = simple
[core]
attributesfile = ~/.gitattributes
excludesfile = /home/kubuxu/.gitignore
hooksPath = /home/kubuxu/dotfiles/githooks
# pager = delta --dark --theme 'Solarized (dark)'
[receive]
fsckObjects = true
[alias]
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop\\|release' | xargs -n 1 git branch -d"
dsf = "!f() { [ \"$GIT_PREFIX\" != \"\" ] && cd "$GIT_PREFIX"; git diff --color $@ | diff-so-fancy | less --tabs=4 -RFX; }; f"
cmp = "!git checkout master && git pull"
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
[commit]
gpgsign = true
[rebase]
autoSquash = true
[rerere]
enabled = true
gpgsign = true
[merge]
conflictstyle = diff3
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[diff]
tool = vimdiff
[difftool]
prompt = false
[hub]
protocol = git
[pull]
ff = only
[init]
defaultBranch = master