dotfiles/gitconfig
2016-02-18 22:12:25 -05:00

37 lines
1.0 KiB
Plaintext

[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' -
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git branch -D $1' -
merge-branch = !git checkout master && git merge @{-1}
pr = !hub pull-request
st = status
up = !git fetch origin && git rebase origin/master
glate = for-each-ref --sort=-committerdate refs/heads/ --format='%(refname) %(committerdate) %(authorname)'
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only
[include]
path = .gitconfig.local
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[user]
email = tyrelsouza@gmail.com
name = Tyrel Souza