-
Notifications
You must be signed in to change notification settings - Fork 45
/
.gitconfig
47 lines (46 loc) · 1.31 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
[alias]
amd = commit --amend --no-edit
am = commit --amend
br = branch --sort=-committerdate
ci = commit
co = checkout
cp = cherry-pick
df = diff
drop = stash drop
# find cp from release branch
fcp = "!scripts/fcp.sh"
# format code
fmt = "!scripts/format.sh --git"
# push code to ci, it will rebase lastest master and then push
pci = !git fetch origin master && git rebase origin/master && git push
la = log --oneline --decorate --graph --all
last = log -1 HEAD --stat
ls = log --graph --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset %C(yellow)%D%Creset' --abbrev-commit
lg = log --stat
pl = pull --rebase origin master
pop = stash pop
pr = pull --rebase --recurse-submodules
rc = rebase --continue
ri = rebase -i HEAD~10
root = rev-parse --show-toplevel
save = stash save
sl = stash list
st = status
sup = submodule update --init --recursive
unstage = reset HEAD --
[color]
ui = auto
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
quotepath = false
editor = vim
[i18n]
commitencoding = utf-8
logoutputencoding = utf-8
[http]
version = HTTP/1.1
postBuffer = 524288000