Via https://dev.to/devmercy/four-ways-to-solve-the-remote-origin-already-exists-error-1f2
git remote remove origin
git remote set-url origin https://github.com/newgit/url.git
Or, we can, instead of removing the URL called origin, rename it,
git remote rename origin backup
Or we might have already set the origin correctly, which we can then check using
git remote -v
which will list all remotes.
No comments:
Post a Comment