-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
66 lines (54 loc) · 1.49 KB
/
gitconfig
File metadata and controls
66 lines (54 loc) · 1.49 KB
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
[user]
name = Joy Chen
email = ctjoychen@gmail.com
[github]
user = ctjoy
[alias]
st = status
ci = commit -v
br = branch -vv
bra = branch -vv --all
co = checkout
unstage = restore --staged
last = log -1 HEAD
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an %Creset' --abbrev-commit
ll = log --pretty=oneline --graph --abbrev-commit
lm = log --pretty=format:'* %s (%h)'
lg = log -p
amend = commit --amend --reuse-message=HEAD
di = diff
dis = diff --stat
dsf = "!f() { [ -z "$GIT_PREFIX" ] || cd "$GIT_PREFIX" && git diff --color "$@" | diff-so-fancy | less --tabs=4 -RFX; }; f"
update-submodules = submodule update --init --recursive
upgrade-submodules = submodule update --init --remote
cleanall = clean -fdx # this is dangerous, so it's intentionally long to type
[diff]
tool = vimdiff
[credential]
helper = osxkeychain
[color]
ui = auto
[color "diff"]
meta = "11"
frag = "magenta bold"
commit = "yellow bold"
old = "red bold"
new = "green bold"
whitespace = "red reverse"
[color "diff-highlight"]
oldNormal = "red bold"
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[merge]
defaultToUpstream = true
tool = vimdiff
[push]
default = upstream
[core]
excludesfile = ~/.gitignore_global
editor = vim
pager = diff-so-fancy | less --tabs=1,5 -R
# Allow local customizations in the .gitconfig_local file
[include]
path = ~/.gitconfig_local