[git/GitHub] git push 时报错:fatal: remote error: You can't push to git://github.com/user/xxx.git(已解决)

当使用  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 。

posted on 2015-06-01 22:42  Memory4Young  阅读(...)  评论(...编辑  收藏

导航

统计