-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
55 lines (54 loc) · 1.08 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
# @file .gitconfig
# @brief Git configuration file.
# @author clemedon (Clément Vidon)
[init]
defaultBranch = main
[core]
editor = vim
excludesfile = ~/.gitignore
pager = less
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[gc]
reflogExpire = 1.month.ago
[pull]
rebase = true
autosquash = true
[fetch]
prune = true
[diff]
colorMoved = zebra
tool = vimdiff
[merge]
tool = vim
[alias]
aa = add --all
ap = add -p
##########
ca = commit --amend
cm = commit -m
cp = commit -p
cv = commit -v
##########
di = diff
ds = diff --staged
##########
lp = log --pretty=format:"%an %cr : %s" --stat --graph -2
pu = push
re = reset
ss = status -sb
[commit]
template = "~/.gitmessage"
[credential]
helper = cache
[url "git@gitlab.infra.online.net:"]
insteadOf = https://gitlab.infra.online.net/
[mergetool "vim"]
cmd = vim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"
[mergetool]
keepBackup = false
[user]
email = cvidon@student.42.fr
name = Clement VIDON