-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
59 lines (49 loc) · 1.21 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
# This can be copied to ~/.gitconfig for some common git settings and aliases
[user]
email = [email protected]
name = Jonathan Tsai
[alias]
br = branch
ci = commit
co = checkout
st = status
# list files
ls = ls-files
# list deleted files
lsd = ls-files --deleted
# remove deleted files
rmd = !git rm `git ls-files --deleted`
master = checkout master
gh-pages = checkout gh-pages
dsf = "!f() { [ \"$GIT_PREFIX\" != \"\" ] && cd "$GIT_PREFIX"; git diff --color $@ | diff-so-fancy | less --tabs=4 -RFX; }; f"
[pager]
# diff = diff-so-fancy | less --tabs=4 -RFX
# show = diff-so-fancy | less --tabs=4 -RFX
[pull]
rebase = true
[push]
default = simple
[color]
ui = true
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
context = white
[color "status"]
added = yellow
changed = green
untracked = cyan
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true