-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
39 lines (39 loc) · 1.07 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
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[http]
sslVerify = false
[core]
excludesfile = ~/.gitignore_global
quotepath = false
[alias]
delete-merged-branches = !git branch --merged | grep -vE '^\\*|master$|main$|develop$' | xargs -I % git branch -d %
fp = !git fetch -p && git delete-merged-branches
pp = !git pull -p && git delete-merged-branches
tree = !git log --graph --all --format=' [%ad] %C(yellow)%h%Creset %C(cyan bold)%an%Creset %s %C(magenta reverse)%d%Creset' --date=short
st = status
ci = commit
pu = push
# checkout
co = checkout
com = !"if git branch --format '%(refname:lstrip=-1)' | grep '^master$' > /dev/null; then git checkout master; else git checkout main; fi"
cob = checkout -b
# branch
br = branch
ba = branch -a
bm = branch --merged
bn = branch --no-merged
# log
ls = log --stat
lp = log -p
lr = log origin
ranking = shortlog -s -n --no-merges
# grep
gr = grep -n
[ghq]
root=~/src
[user]
name = Satoshi SAKAO
email = [email protected]
[include]
path = ~/.gitconfig.local