android studio提交到开源git时出现:fatal: refusing to merge unrelated histories的解决办法

android studio提交到开源git时出现:fatal: refusing to merge unrelated histories的解决办法

  • 1.cmd进入项目的根目录。
  • 2.执行下面的命令:git pull origin master –allow-unrelated-histories。可以提交成功。
  • 3.再次push。

猜你喜欢

转载自blog.csdn.net/lyl614976970/article/details/82147002