How do I remove files saying "old mode 100755 new mode 100644" from unstaged changes in Git?

For some reason, when I initially did a pull from the repository for a git project of mine, I got a ton of files in my working copy that have no discernible changes made to them, but keep showing up in my unstaged changes area.

I'm using Git Gui on Windows xp, and when I go to look at the file to see what has changed. All I see is:

old mode 100755  
new mode 100644  

Does anyone know what this means?

How can I get these files out of my list of unstaged changes? (Very annoying to have to go through 100's of files, just to pick out files I've recently edited and want to commit).


That looks like unix file permissions modes to me ( 755 = rwxr-xr-x , 644 = rw-r--r-- ) - the old mode included the +x (executable) flag, the new mode doesn't.

This msysgit issue's replies suggests setting core.filemode to false in order to get rid of the issue:

git config core.filemode false

Setting core.filemode to false does work. But you'd make sure the settings in ~/.gitconfig aren't be overridden by those in .git/config.


您可以尝试git reset --hard HEAD将repo重置为预期的默认状态。

链接地址: http://www.djcxy.com/p/57232.html

上一篇: 试图修复线路

下一篇: 如何从Git中的暂时更改中移除说明“旧模式100755新模式100644”的文件?