Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.