Skip to content

Instantly share code, notes, and snippets.

@javigomez
Created October 22, 2012 15:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save javigomez/3931967 to your computer and use it in GitHub Desktop.
Save javigomez/3931967 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 add remote origin git@github.com:user/fork.git
@evenfrost
Copy link

git remote add origin git@github.com:user/fork.git

@Stevoisiak
Copy link

@evenfrost is correct. The command should be git remote add origin.

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