fatal: unable to update url base from redirection

前端 未结 3 2806
甜味超标
甜味超标 2021-01-12 08:00
$ git remote set-url origin https://demodev@servername.com/home/demodev/public_html/waqtpar.git`

$ git push -u origin master`

fatal

相关标签:
3条回答
  • 2021-01-12 08:12

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

    0 讨论(0)
  • 2021-01-12 08:14

    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/
    
    0 讨论(0)
  • 2021-01-12 08:20

    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

    0 讨论(0)
提交回复
热议问题