Created
February 21, 2013 20:47
-
-
Save riywo/5008080 to your computer and use it in GitHub Desktop.
sync git local branch to remote branch (origin)
This file contains 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
$ export BRANCH=test | |
$ git fetch | |
$ git checkout $BRANCH || git checkout -b $BRANCH origin/$BRANCH | |
$ git pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment