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就成功了。

 

 

 

 

 

 

posted @ 2020-02-13 10:32  泽东玩乾坤  阅读(1586)  评论(0编辑  收藏  举报