scatterd-dotfiles/gitconfig
2013-01-18 11:36:50 -08:00

22 lines
700 B
Text

[push]
default = tracking
[color]
branch = auto
diff = auto
status = auto
[format]
pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s
[alias]
aa = add --all
am = commit --amend
ap = add --patch
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} --ff-only
rebase-origin = !git fetch origin && git rebase origin/master
st = status
[core]
excludesfile = ~/.gitignore
autocrlf = input