-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
102 lines (95 loc) · 2.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[user]
name = Di Wen
email = di@cointracker.com
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMLL0n+Yum4vV3lCBeJ35RrPPBS5+wRzVPS/b2X59WE+
[core]
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=2 -RFX
editor = nvim
autocrlf = input
safecrlf = true
whitespace = cr-at-eol
[alias]
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\t=> \\2/' | sort
st = status
ci = commit
br = branch
co = checkout
sb = show-branch
cp = cherry-pick
lg = log --stat --source
l = log --stat -1 --source
last = log --stat -1
logg = log --pretty=format:'%h - %an -%ad -%s'
glog = log --graph
h = log --pretty=format:\"%C(yellow)%h%Creset %C(red)[%an]%Creset%C(auto)%d%Creset %s %Cgreen(%cr)%Creset\" --graph --date=short -10
hist = log --pretty=format:\"%C(yellow)%h%Creset %C(red)[%an]%Creset%C(auto)%d%Creset %s %Cgreen(%cr)%Creset\" --graph --date=short
news = log -p HEAD@{1}..HEAD@{0}
pb = pull --rebase
pick = cherry-pick
pl = pull
ps = push
pu = push -u origin HEAD
pf = push -fu origin HEAD
df = diff
dfs = diff --stat -r
diffstat = diff --stat -r
wdf = diff --word-diff
wdiff = diff --word-diff
changes = diff --name-status -r
unstage = reset HEAD --
type = cat-file -t
dump = cat-file -p
visual = !gitk
sbi = submodule init
sbu = submodule update
sbp = submodule foreach git pull
sbc = submodule foreach git co master
[merge]
tool = vimdiff
conflictstyle = diff3
[push]
default = tracking
[color]
ui = true
[i18n]
commitEncoding = utf8
logOutputEncoding = utf8
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
path = nvim
[branch]
autosetuprebase = always
[pull]
rebase = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[diff]
[url "git@github.com:"]
insteadOf = https://github.com/
[gc]
[mergetool "vimdiff"]
path = nvim
[include]
path = /Users/wendi/.config/dev/gitconfig
[log]
date = local
[init]
defaultBranch = main
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[commit]
gpgsign = true