-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
80 lines (63 loc) · 1.89 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
[user]
name = Maxime Hélias
email = [email protected]
[checkout]
defaultRemote = origin
[init]
defaultBranch = main
[alias]
#Pull
pull = pull --rebase
# Push
merge = merge --no-ff
# Fetch all
fp = fetch --all --prune --tags --force
# Amend
oops = commit --amend --no-edit
# Delete branches merged with master @todo don't delete dev and so on...
cleanup = "!git checkout dev && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
# Display a graph history
graph = "!git log --all --decorate --oneline --graph --date=short --pretty='%C(red)%h%Creset | %C(yellow)%ad%Creset | %C(green)%an%Creset | %s'"
# Display contributor
contibutor = "!git shortlog -s -n -e | head"
[core]
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes
editor = nvim
autocrlf = input
trustctime = false
precomposeunicode = false
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
hyperlinks = true
features = decorations
[delta "decorations"]
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[pull]
rebase = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[color]
ui = auto
[tag]
gpgsign = false
[commit]
gpgsign = false
[includeIf "gitdir:~/www/work/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/www/opensource/"]
path = ~/.gitconfig-opensource
[includeIf "gitdir:~/www/perso/"]
path = ~/.gitconfig-opensource
[includeIf "gitdir:~/www/sandbox/"]
path = ~/.gitconfig-opensource