scatterd-dotfiles/gitconfig
2013-04-18 21:44:18 -07:00

21 lines
636 B
Text

[push]
default = upstream
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
ca = commit --amend
ci = commit -v
co = checkout
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git remote prune origin && git branch -D $1' -
merge-branch = !git checkout master && git merge @{-1}
pr = !hub pull-request
rebase-origin = !git fetch origin && git rebase origin/master
st = status
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only