Created
January 13, 2020 16:55
-
-
Save germanviscuso/26f3f96d9048c5446acc6e4cfe8009d6 to your computer and use it in GitHub Desktop.
Overwrite existing git repo with another one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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