coding git push 失败

首先在coding上创建一个项目,添加readme文件。这样才会使用到git pull命令

添加,提交,和远程连接这里就不展示了

在git push前就需要先git pull。

在此之前先关闭git 客户端,打开.git/config

添加

[branch "master"]
      remote = origin
      merge = refs/heads/master

最后打开git 输入git pull --allow-unrelated-histories

git push

成功

没有虚过一天,真好
原文地址:https://www.cnblogs.com/dailinfu/p/6691913.html