Skip to content

Instantly share code, notes, and snippets.

@anandjagadeesh
Created July 2, 2020 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anandjagadeesh/7116b8e662877a32363a47a97d9d0218 to your computer and use it in GitHub Desktop.
Save anandjagadeesh/7116b8e662877a32363a47a97d9d0218 to your computer and use it in GitHub Desktop.
Setting Upstream of a Branch

To set Upstream of a branch, you can use:

git branch --set-upstream-to origin <branch>

or using the short version

git branch -u origin <branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment