-
Notifications
You must be signed in to change notification settings - Fork 0
/
_gitconfig
40 lines (40 loc) · 1 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
# vim: ft=gitconfig
[user]
name = Lei Xu
email = [email protected]
[alias]
st = status
ci = commit -a
co = checkout
di = diff
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
tree = log --graph --oneline --decorate --all
cp = cherry-pick
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "
[color]
diff = auto
status = auto
branch = auto
[core]
whitespace = trailing-space,space-before-tab
excludesfile = ~/.gitignore
[push]
default = simple
[fetch]
recurseSubmodules = true
[include]
path = ~/.gitconfig.local
[diff]
tool = p4mergetool
[branch]
autosetuprebase = always
[difftool]
prompt = false
[mergetool]
keepBackup = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true