/
.gitconfig
57 lines (45 loc) · 1.39 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
[user]
name = Maxime Hélias
email = maximehelias16@gmail.com
[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"
[color]
ui = auto
[core]
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes
editor = vim
autocrlf = input
trustctime = false
precomposeunicode = false
[checkout]
defaultRemote = origin
[tag]
gpgsign = false
[commit]
gpgsign = false
[pull]
rebase = true
[init]
defaultBranch = main
[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