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