-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
62 lines (60 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[init]
templatedir = ~/.git_template
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
ca = commit --amend
ci = commit -v
co = checkout
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
current-branch = !sh -c 'git rev-parse --abbrev-ref HEAD' -
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git branch -D $1' -
merge-branch = !git checkout master && git merge @{-1}
pr = !gh pull-request
rename-branch = !sh -c 'old=$(git current-branch) && git branch -m $old $1 && git push origin --set-upstream $1 && git push origin --delete $old' -
st = status
up = !git fetch origin && git rebase origin/master
ft = fetch
br = branch
#diff
df = diff
dfc = diff --cached
dfw = diff --color-words
dfwc = diff --color-words --cached
# log
l = log --pretty=format:\"%h %ar\t(%an)\t: %s\" --date=short -20
lg = log --pretty=format:\"%h %ar\t(%an)\t: %s\" --date=short -20 --graph
d = difftool
[core]
editor = vim
pager = less -r
excludesfile = ~/.gitignore
autoCRLF = false
[merge]
ff = only
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[include]
path = ~/.gitconfig.local
[http]
sslVerify = false
[user]
name = kazuki matsumoto
email = [email protected]
[branch "master"]
merge = refs/heads/master
remote = origin
[diff]
tool = vimdiff
[url "https://"]
insteadOf = git://
[url "http://"]
insteadOf = git://