2 git push不了远程仓库:

Push rejected: Push to origin/master was rejected错误解决方案

解决方案如下:
1.切换到自己项目所在的目录,右键选择GIT BASH Here,
Idea中可使用Alt+F122.在terminl窗口中依次输入命令:
git pull
git pull origin master
git pull origin master --allow-unrelated-histories
3.在idea中重新push自己的项目,成功!!!
如果还不行:git push -u origin master -f

**更多敬请关注:
公众号: IT技术旅途
**
2 git push不了远程仓库:

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-07-05
  • 2021-08-22
  • 2022-12-23
  • 2021-11-02
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案