如何将本地git连接到远程git repo

时间:2017-05-11 06:14:29

标签: git svn github version-control

代表: username = demodev servername = servername.com 在服务器punlic_html / sample.git中创建了git repo。

using git commend : git remote set-url origin https://demodev@servername.com/home/demodev/public_html/sample.git/

在git远程推荐之后

git push origin master

它会显示一些错误消息

fatal: unable to update url base from redirection: asked for: https://demodev@servername.com/home/demodev/public_html/waqtpar.git/info/refs?service=git-receive-pack redirect: https://servername.com/404.html

1 个答案:

答案 0 :(得分:0)

尝试删除

  

/

从网址末尾签名。