-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig.base
51 lines (51 loc) · 1.33 KB
/
.gitconfig.base
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
[push]
default = simple
[color]
ui = true
diff = auto
status = auto
branch = auto
[alias]
graph = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
# ref:https://github.com/kenchan/dotfiles/blob/master/gitconfig#L6
co = checkout
sw = switch
st = status -sb
pd = push --delete
c = commit
cw = commit --allow-empty -m 'WIP'
a = add
al = add .
au = add -u
ap = add -p
b = branch
ba = branch -a
bm = branch -a --merged
d = diff
ds = diff --staged
l = log
lo = log --oneline --graph
ls = log --stat
lp = log -p
ru = remote update --prune
gn = grep -n
rh = reset HEAD^
ri = !sh -c 'git rebase -i HEAD~$0'
gsub = "!sh -c 'git grep -l $0 $2 | xargs sed -i \"s/$0/$1/g\"'"
cb = "!sh -c 'git branch --merged master | grep -v master | grep -v \"*\" | xargs git branch -d'"
wip = commit --allow-empty -m 'wip'
cot = "!sh -c 'git branch --remote | peco | xargs git checkout -t'"
pl = "pull"
[ghq]
root = /home/yamakawa00/src
[core]
excludesfile = /home/yamakawa00/.gitignore_global
autocrlf = input
pager = less -cm
[init]
templatedir = ~/.git_template
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true