Skip to content

Instantly share code, notes, and snippets.

@mikizdr
Created April 17, 2017 16:51
Show Gist options
  • Save mikizdr/e5ea253058afdc8618deec0f0bb3a908 to your computer and use it in GitHub Desktop.
Save mikizdr/e5ea253058afdc8618deec0f0bb3a908 to your computer and use it in GitHub Desktop.
Make an existing git branch to track a remote branch
// 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