-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
76 lines (63 loc) · 1.87 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
# Include appropriate [user] section based on path
[includeIf "gitdir:~/dev/"]
path = ~/.gitconfig.personal
[includeIf "gitdir:~/.dotfiles/"]
path = ~/.gitconfig.personal
[includeIf "gitdir:~/projects/"]
path = ~/.gitconfig.work
[commit]
gpgsign = true
[core]
excludesfile = ~/.gitignore_global
editor = nvim
; autocrlf = input
pager = less -+F
[push]
default = current
[help]
# When mispelling a fonction automatically correct it
autocorrect = 5
# Messages coloring
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = 70 # green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = 124 bold # red bold
new = 70 bold # green bold
[color "status"]
added = yellow
changed = 70 # green
untracked = 68 # blue
# Pretty print log
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
l5 = log -n 5
[credential]
# When not using an ssh key, cache the credentials for about 8 hours
helper = cache --timeout 28800
[rerere]
enabled = 1
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = nvimdiff
; stat = true
[mergetool "nvimdiff"]
cmd = nvim -d
[diff]
tool = winmerge
[difftool "winmerge"]
name = WinMerge
trustExitCode = true
cmd = winmergeportable.exe -u -e $LOCAL $REMOTE
[init]
defaultBranch = main