For a project I found my self with 2 remote origin which cause error whenever I do a push,
the 2 remote origin are for different target and cannot remove the first one.
Hello @Charles Desbiens,
Welcome to the Community.
Take a look at git remote command. Run git remote -v to list all remotes, then change/remove the wrong one.
I guess in your case push and fetch URL are different for some reason, and push URL is pointing to the wrong repository. This is not what you want, unless you're using something like Smart Mirroring. In this case you'll need to update the push URL to match the fetch one:
git remote set-url --push origin <correct URL here>
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.