reference : http://fle.github.io/git-tip-a-simple-gitconfig-file.html
As several friends have asked me this, here is my ~/.gitconfig base file.
Nothing special, just a few aliases and some syntax highlighting :).
|
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
|
[user]
name = Florent Lebreton
email = florentlebreton@
free
.fr
[color]
ui = auto
[color
"branch"
]
current = yellow reverse
local
= yellow
remote = green
[color
"diff"
]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color
"status"
]
added = yellow
changed = green
untracked = cyan
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[
alias
]
st = status
ci = commit
br = branch
co = checkout
df
=
diff
dc
=
diff
--cached
lg = log -p
pr
= pull --rebase
gr = log --all --graph --decorate --oneline
|
分类:
Git
本文转自demoblog博客园博客,原文链接http://www.cnblogs.com/0616--ataozhijia/p/8034042.html如需转载请自行联系原作者
demoblog