forked from Backaway/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
54 lines (53 loc) · 1.26 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
[user]
name = Huizhou Wang
email = [email protected]
[core]
editor = vim
excludesfile = /Users/Junevimer/.gitignore_global
[color]
ui = auto
[color]
diff = auto
branch = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
tool = viwdiff
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
mylog = log --pretty=format:\"%h - %an, %ar : %s\"
mybr = log --pretty=format:\"%h - %an, %ar : %s\" --graph
co = checkout
br = branch
ci = commit
st = status
unstage = reset HEAD --
last = log -1 HEAD
ncommit= commit --autho=\"whz <[email protected]>\"
d = difftool
[diff]
tool = mvimdiff
[difftool "mvimdiff"]
cmd = mvim -f -d \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = No
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f