git 拉取提示本地文件修改错误,其实并没有修改

有时遇到本地文件明明没修改,pull提示文件修改的错误

error: Your local changes to the following files would be overwritten by merge:

Please commit your changes or stash them before you merge.

这种情况可能是文件权限变更引起的,

git config core.filemode false

或者用另一个思路,把文件rm 再restore回来即可

posted @ 2021-05-06 16:42  可爱香草  阅读(24)  评论(0)    收藏  举报  来源