-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
43 lines (35 loc) · 1.33 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
[core]
editor = vim
quotepath = false
[alias]
lg = log --graph --decorate --oneline --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
lg2 = log --graph --decorate --oneline --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
lg3 = log --graph --decorate --oneline --branches --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
fa = fetch --all
st = status
pl = pull
ps = push
c = commit
co = checkout
cp = cherry-pick
find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'"
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
[user]
name = Wenzhao Hu
email = 12122021+wzhudev@users.noreply.github.com
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
ff = only
default = current
[push]
autoSetupRemote = true # this requires a higher version of Git
[init]
defaultBranch = main
[http]
proxy = http://127.0.0.1:7890 # Use proxy for Git
[url "https://github.com/"]
insteadOf = git@github.com: