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


浙公网安备 33010602011771号