-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
119 lines (96 loc) · 2.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[user]
name = Guillaume Nicolas
email = [email protected]
signingkey = 83C465494403846D
[branch]
autosetuprebase = always
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[commit]
gpgsign = true
[rerere]
enabled = true
[diff]
mnemonicprefix = true
submodule = log
[help]
autocorrect = -1
[pull]
rebase = preserve
[push]
default = simple
[rebase]
autostash = true
[alias]
co = checkout
ci = commit
cia = !git add -A && git commit
br = branch
df = diff
st = status -s
amend = commit --amend
who = shortlog -s --
changes = diff --name-status -r
dic = diff --cached
ds = diff --stat -r
wdiff = diff --word-diff
undo = !git reset --soft HEAD^
unstage = reset HEAD --
# Affiche le diff avant pull
do = diff --name-status -r ORIG_HEAD HEAD
# 2 logs avec visualisation des branches
# Long
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
# Court
oneline = log --pretty=oneline --abbrev-commit --graph --decorate
# Long avec fichiers modifies
lgf = log --name-status --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative
# Long avec message de commit complet
flg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative
# Un 'status' concis
s = "!git diff --name-status | sed -e 's/^/W /' ; git diff --cached --name-status | sed -e 's/^/C /'"
emerge = merge --no-ff
# ajouter les fichiers modifies.
addm = !git-ls-files -m -z | xargs -0 git add && git status
# ajouter les fichiers inconnus.
addu = !git-ls-files -o --exclude-standard -z | xargs -0 git add && git status
# supprimer les fichiers marques comme effaces.
rmm = !git ls-files -d -z | xargs -0 git rm && git status
# Commandes SVN
svnc = svn dcommit
svnu = svn rebase
# Init et update des submodules
pup = "!git submodule init && git submodule update"
# Pushs all submodules to origin master
pushsub = submodule foreach "git push origin master"
# Pull submodules from origin master
pullsub = submodule foreach "git pull origin master"
[credential]
helper = cache --timeout=259200
[webui]
autoupdate = true
[status]
submoduleSummary = true
showUntrackedFiles = all
[fetch]
recurseSubmodules = on-demand
[log]
abbrevCommit = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[pager]
diff = diff-so-fancy | less --tabs=1,5 -RFX
show = diff-so-fancy | less --tabs=1,5 -RFX
[gpg]
program = gpg