Skip to content

Instantly share code, notes, and snippets.

@cesarferreira
Last active February 10, 2017 11:18
Show Gist options
  • Select an option

  • Save cesarferreira/635d827c9b7730e9033f420506aa79ff to your computer and use it in GitHub Desktop.

Select an option

Save cesarferreira/635d827c9b7730e9033f420506aa79ff to your computer and use it in GitHub Desktop.
Git - Set upstream to different branch

Usage

git branch --set-upstream-to=origin/branch local-branch

Sample

git branch --set-upstream-to=origin/feature/auth feature/auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment