当使用  git push  时,提示以下错误:

fatal: remote error:
  You can't push to git://github.com/user/xxx.git
  Use https://github.com/user/xxx.git

 

怎么解决呢?

一条命令搞定:

git remote set-url origin https://github.com/user/xxx.git

 

再试试  git push 。

相关文章: