Skip to content

Instantly share code, notes, and snippets.

@germanviscuso
Created January 13, 2020 16:55
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 germanviscuso/26f3f96d9048c5446acc6e4cfe8009d6 to your computer and use it in GitHub Desktop.
Save germanviscuso/26f3f96d9048c5446acc6e4cfe8009d6 to your computer and use it in GitHub Desktop.
Overwrite existing git repo with another one
(Switch to old repo)
> git remote add new-origin new_repo_url
> git remote update
> git push -f new-origin master --follow-tags (WARNING: new repo gets overwritten!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment