git push时报错:error: failed to push some refs to/hint: Updates were rejected because the tip of your current branch is behind/hint: its remote counterpart. Integrate the remote changes


在git push时报错:

 

 

看网上很多人说是因为本地仓库的文件和远程仓库不一样,所以要先用命令git pull -f origin master将远程仓库的文件拉到本地,可是这样做之后再git push还是没有用,还是报同样的错误。

 


于是我就用git push -f origin master强制push就成功了。

 

 

 

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM