2014-07-18 09:58:50 -04:00
|
|
|
[init]
|
|
|
|
templatedir = ~/.git_template
|
2011-10-24 10:30:50 -04:00
|
|
|
[push]
|
2013-07-10 23:16:27 -07:00
|
|
|
default = current
|
2012-09-26 23:44:35 -07:00
|
|
|
[color]
|
2013-04-04 07:22:47 -07:00
|
|
|
ui = auto
|
2012-09-26 23:44:35 -07:00
|
|
|
[alias]
|
2013-01-17 22:55:39 -08:00
|
|
|
aa = add --all
|
|
|
|
ap = add --patch
|
2013-03-08 14:58:53 -05:00
|
|
|
ca = commit --amend
|
2012-09-26 23:44:35 -07:00
|
|
|
ci = commit -v
|
2013-01-17 22:55:39 -08:00
|
|
|
co = checkout
|
2014-07-16 15:00:39 -07:00
|
|
|
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
|
2012-09-26 23:44:35 -07:00
|
|
|
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
|
2014-07-18 09:58:50 -04:00
|
|
|
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
|
2015-01-25 16:48:36 -08:00
|
|
|
current-branch = !sh -c 'git rev-parse --abbrev-ref HEAD' -
|
2014-04-21 10:25:20 -04:00
|
|
|
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git branch -D $1' -
|
2013-04-06 16:06:35 -07:00
|
|
|
merge-branch = !git checkout master && git merge @{-1}
|
2014-09-30 15:43:41 -07:00
|
|
|
pr = !gh pull-request
|
2015-01-25 16:48:36 -08:00
|
|
|
rename-branch = !sh -c 'old=$(git current-branch) && git branch -m $old $1 && git push origin --set-upstream $1 && git push origin --delete $old' -
|
2013-01-17 22:55:39 -08:00
|
|
|
st = status
|
2013-04-14 10:57:44 -07:00
|
|
|
up = !git fetch origin && git rebase origin/master
|
2012-09-26 23:44:35 -07:00
|
|
|
[core]
|
|
|
|
excludesfile = ~/.gitignore
|
|
|
|
autocrlf = input
|
2013-04-06 16:06:35 -07:00
|
|
|
[merge]
|
|
|
|
ff = only
|
2013-09-12 10:30:48 +02:00
|
|
|
[commit]
|
|
|
|
template = ~/.gitmessage
|
2014-04-21 10:25:20 -04:00
|
|
|
[fetch]
|
|
|
|
prune = true
|
2014-10-18 21:43:16 -07:00
|
|
|
[include]
|
|
|
|
path = ~/.gitconfig.local
|