Skip to content

Instantly share code, notes, and snippets.

@leoasis leoasis/.gitconfig
Created Nov 17, 2014

Embed
What would you like to do?
Git alias to sync your branch from an upstream repo
[alias]
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
You can’t perform that action at this time.