当我们在Git提交的时候,有的时候提交过之后,无法提交,而且提示一些列错误,
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
按照网上教程
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
如果你们试试好用的话,那样更好,但是我的还是有错误。
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
然后接着查网上教程 cannot rebase: 的解决方案
https://blog.csdn.net/jiangyu1013/article/details/78852594
输入git status 之后 提示的都做了之后 还是没办法解决问题。这个时候就方了。
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
所以弄出了 一个暴力的但是管用的方法
首先我们找到我们当初git init 的文件夹,也就是想要提交到文件夹,将隐藏的项目勾选上。
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
然后把.git文件夹删掉 之后我们再按照步骤重新提交一次 就OK了
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
这个时候又提示出**![rejected] master->master (fetch first)** 错误,之后再Pull一下就可以 了
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,
使用git提交到仓库使用commit指令出现问题Your branch and 'origin/master' have diverged,

送给那些着急交作业 但是一时找不到 解决办法的人

相关文章:

  • 2021-05-25
  • 2021-10-04
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2021-06-11
  • 2021-06-18
  • 2021-09-04
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案