Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: unable to update url base from redirection

$ git remote set-url origin https://[email protected]/home/demodev/public_html/waqtpar.git`

$ git push -u origin master`

fatal: unable to update url base from redirection: asked for: https://[email protected]:/home/demodev/public_html/waqtpar.git/info/refs?service=git-receive-pack redirect: https://[email protected]:/404.html`

like image 473
Balaji R Avatar asked May 11 '17 08:05

Balaji R


3 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://[email protected]/home/demodev/public_html/waqtpar.git

or

[email protected]:/home/demodev/public_html/waqtpar.git

or

https://[email protected]/~demodev/waqtpar.git

like image 86
Vampire Avatar answered Nov 19 '22 20:11

Vampire


You may be using browser url instead of git repository clone url.

The url has to end with .git

like image 12
Kris Avatar answered Nov 19 '22 20:11

Kris


I just met this problem. I fixed this by disabling proxy (I'm using TortoiseGit)

like image 2
sanbrother Avatar answered Nov 19 '22 19:11

sanbrother