Skip to content

Instantly share code, notes, and snippets.

@javdl
Forked from javigomez/Origin to Upstream
Last active December 6, 2017 20:56
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 javdl/26bf9cbff8fb75778a107d6bfea0e908 to your computer and use it in GitHub Desktop.
Save javdl/26bf9cbff8fb75778a107d6bfea0e908 to your computer and use it in GitHub Desktop.
Git command to rename the origin to upstream when you just forked a project
git remote rename origin upstream
git remote add origin git@github.com:user/fork.git
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment