forked from chusiang/sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_gitconfig
54 lines (47 loc) · 1.18 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
# ============================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: _gitconfig
# Modified: 2014-12-31 10:06
# Description: config for git.
# Reference:
# ===========================================================
# - Account
[user]
name = chusiang
email = [email protected]
# - Color my git.
[color]
branch = auto
diff = auto
log = auto
status = auto
ui = auto
# Diff with vimdiff.
[diff]
external = git_diff_wrapper
[pager]
diff =
# Alias and Abbreveviation.
[alias]
co = checkout
cm = commit
recm = commit --amend
di = diff
df = diff
st = status
br = branch
re = remote
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lo = log --color --pretty=format:'%Cred%h%Creset %s' --abbrev-commit
#ls = log --color --pretty=oneline --pretty=format:'%Cred' --abbrev-commit
me = merge --no-ff
mg = merge --no-ff
nfmerge = merge --no-ff
resetToFront = reset --soft HEAD^
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[push]
default = simple