[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 。

原文地址:https://www.cnblogs.com/memory4young/p/git-push-fatal-remote-error-can-not-push-over-the-git-protocol.html