Skip to content

Instantly share code, notes, and snippets.

@mohamed-ea
Created January 2, 2017 16:17
Show Gist options
  • Save mohamed-ea/1dc02901243bd7cedda604c4a468d708 to your computer and use it in GitHub Desktop.
Save mohamed-ea/1dc02901243bd7cedda604c4a468d708 to your computer and use it in GitHub Desktop.
Change "origin" of a GIT repository
$ git remote -v
$ git remote rm origin
$ git remote add origin git@github.com:newgit/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
$ git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment