-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
31 lines (31 loc) · 1.05 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
[core]
pager = diff-highlight | less -i
excludesfile = ~/.gitignore
[user]
name = hpool
email = [email protected]
[color]
ui = auto
[alias]
co = checkout
st = status --branch --short
ci = commit
di = diff
dic = diff --cached
# branch関連
br = branch
ba = branch -a # originも含めた全てのbranchを表示
bm = branch --merged # merge済みのbranchを表示
bn = branch --no-merged # mergeしてないbranchを表示
# logをtree表示
log-graph = log --graph --date=short --color --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s'
log-all = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d %
push-force = push --force-with-lease
[hooks]
showrev = "git show -C %s; echo"
mailinglist = [email protected]
[push]
default = simple
[grep]
lineNumber = true