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 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

2

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)

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest