Skip to content

Instantly share code, notes, and snippets.



Created Nov 17, 2014
What would you like to do?
Git alias to sync your branch from an upstream repo
sync = !"sh -c 'git pull upstream ${1-$(git symbolic-ref --short -q HEAD)}; git push' -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment