Skip to content

Instantly share code, notes, and snippets.

@ralcorta
Last active September 28, 2021 01:05
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 ralcorta/f581e7a3464cc18b585a0cde80133e30 to your computer and use it in GitHub Desktop.
Save ralcorta/f581e7a3464cc18b585a0cde80133e30 to your computer and use it in GitHub Desktop.
Change git repository
$ git remote rm origin
$ git remote add origin git@github.com:user/project.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment