The repo to which I need to push is this:
https://myvault.visualstudio.com/foo/_versionControl?path=bar%2Fcxmlhub
But for some reason, VS is trying to push here:
https://myvault.visualstudio.com/foo/_versionControl?path=bar%2Fcxmlhub/info/refs&service=git-receive-pack
I don't know (and can't figure out) where the extra /info/refs&service=git-receive-pack
is coming from.
When I do git remote -v
I get back the correct URL for both fetch
and push
. Also, I am already logged in to the repo on a browser on the same machine.
This is the error I am seeing:
Error encountered while pushing branch to the remote repository: Git failed with a fatal error. Unable to update url base from redirection
I've looked at these two threads:
git push gives fatal: unable to update url base from redirection:
and
fatal: unable to update url base from redirection
But they only tell me what I already know: I'm trying to push to the wrong URL. What I don't know is how to fix this!