Skip to content

Instantly share code, notes, and snippets.

@douglasrodrigo
Created February 28, 2012 12:53
Show Gist options
  • Save douglasrodrigo/1932353 to your computer and use it in GitHub Desktop.
Save douglasrodrigo/1932353 to your computer and use it in GitHub Desktop.
git update
[alias]
update = !sh -c \"git fetch && git rebase origin/$(git symbolic-ref HEAD | sed -e \"s,.*/\\(.*\\),\\1,\")\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment