Fatal: Unable to Update Url Base from Redirection
$ Git Remote Set-Url Origin $ Git Push -U Origin Master` Fatal: Unable to Update Url Base from Redirection: Asked for: Redirect: ` 5 Answers Well, as the Error...
$ git remote set-url origin
$ git push -u origin master`
fatal: unable to update url base from redirection: asked for: redirect: `
5 Answers
Well, as the error says. You are getting a 404 error page which means website is not found. Git of course cannot handle this redirect in this case and so complains.
Your URL is simply wrong. Did you maybe want to use
ssh://demodev@
or
:/home/demodev/public_html/waqtpar.git
or
You may be using browser url instead of git repository clone url.
The url has to end with .git
I just met this problem. I fixed this by disabling proxy (I'm using TortoiseGit)
Steps followed for cloning in command line:
>mkdir <folder name>
>git init
>git clone http[s]://host.xz[:port]/path/to/
or
>git clone ssh://[user@]host.xz[:port]/path/to/
If you use VisualStudioCode/ left menu / source control / remotes / fetch
and thats all, you can use push as normally