Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save djburdick/5665533 to your computer and use it in GitHub Desktop.

Select an option

Save djburdick/5665533 to your computer and use it in GitHub Desktop.
set upstream tracking for a branch that already exists locally. #git
$ git branch --set-upstream master origin/master
# useful if you've used git flow init and it created a bunch of local branches that don't track the remotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment