Created
April 17, 2017 16:51
-
-
Save mikizdr/e5ea253058afdc8618deec0f0bb3a908 to your computer and use it in GitHub Desktop.
Make an existing git branch to track a remote branch
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
// if you are on local master branch | |
git branch --set-upstream-to=origin/master | |
// if you are on the local branch local_branch | |
git branch --set-upstream-to=origin/master local_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment