-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
36 lines (33 loc) · 941 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
;--------------------------------------------------------------------------------
; My Git config file \O/
;
;--------------------------------------------------------------------------------
[user]
name = Nils Wentzell
email = [email protected]
[merge]
tool = vimdiff
[merge "vimdiff"]
path = nvim
[core]
editor = nvim
excludesfile = ~/.glob_git_ignore
[push]
default = current
[pull]
default = current
ff = only
[diff]
submodule = log
tool = vimdiff
[difftool "vimdiff"]
path = nvim
[difftool]
prompt = false
[alias]
d = difftool -w
bl = blame -w -M
l = log --graph --abbrev-commit --decorate --format=format:'%C(blue)%h%C(reset) - %C(cyan)%aD%C(reset) %C(green)(%ar)%C(reset)%C(yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
permission-reset = !git diff -p -R | grep -E \"^(diff|(old|new) mode)\" | git apply
[init]
templatedir = ~/.git_template