Added git update shortcut

update fetches from the upstream remote and then rebases
upstream branch onto the current branch.
This commit is contained in:
Nick Nisi
2013-04-22 11:04:40 -05:00
parent 8023146a9b
commit d3735ced21

View File

@@ -44,6 +44,9 @@
cleanup = "!git remote prune origin && git gc && git clean -df && git stash clear"
# rebase the current branch with changes from upstream remote
update = !git fetch upstream && git rebase upstream/`git rev-parse --abbrev-ref HEAD`
# grep commands
# 'diff grep'