VS git 出现错误: rejected Updates were rejected because the tip of your current branch is behind

vs推送时出现错误

 

 解决:

 

 

在命令行输入下面命令

git pull origin master --allow-unrelated-histories

  

在vs中再推送就OK了

 参考:

https://blog.csdn.net/dongdong_csdn/article/details/96596574

 

 

 

 

 

 

 

 

posted @ 2020-08-04 15:23  sj2016  阅读(322)  评论(0编辑  收藏  举报