Created
November 17, 2014 13:10
-
-
Save leoasis/3f941b6652f6f93cc1d6 to your computer and use it in GitHub Desktop.
Git alias to sync your branch from an upstream repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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