-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
65 lines (63 loc) · 1.57 KB
/
Copy pathgitconfig
File metadata and controls
65 lines (63 loc) · 1.57 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
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = blue bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color]
ui = true
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[user]
name = Jun Wang
email = richard.junwang@gmail.com
[alias]
br = branch
ci = commit
co = checkout
df = diff
ds = diff --staged
st = status
l = log
last = log -1 HEAD
lg = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lp = log --pretty=oneline
sa = stash apply
sh = show
ss = stash save
unstage = reset HEAD --
branches = branch --list
histedit = rebase -i origin/master
amend = commit --amend
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
# Allow local customizations in the .gitconfig_local file
[include]
path = ~/.gitconfig_local
[core]
editor = vim
excludesfile = ~/.gitignore_global
WHITESPACE=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[pager]
branch = false
[push]
default = current
[pull]
rebase = true
[init]
defaultBranch = main
[credential]
helper = store