$ git remote set-url origin https://demodev@servername.com/home/demodev/public_html/waqtpar.git`
$ git push -u origin master`
fatal
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/repo.git/
or
>git clone ssh://[user@]host.xz[:port]/path/to/repo.git/
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@servername.com/home/demodev/public_html/waqtpar.git
or
demodev@servername.com:/home/demodev/public_html/waqtpar.git
or
https://demodev@servername.com/~demodev/waqtpar.git