问题描述
出于某种原因,当我最初从存储库中为我的一个git项目拉出
时,我的工作副本中有大量文件没有对它们做出明显的更改,但继续显示在我的非暂存更改
区域中。
我在Windows XP上使用Git Gui,当我去查看文件时,看看发生了什么变化。
我看到的是:
旧模式100755
新模式100644
有人知道这意味着什么吗?
我如何将这些文件从未分类的更改列表中取出? (非常讨厌必须通过100个文件,只是为了挑选出我最近编辑并希望提交的文件)。
这看起来像我的unix文件权限模式( 建议将core.filemode设置为false以消除问题: 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 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: 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 ( This msysgit issue's replies suggests setting core.filemode to false in order to get rid of the issue: 这篇关于我如何删除文件“旧模式100755新模式100644”从Git中的暂时更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 755
= rwxr-xr-x
, 644
= rw-r - r - code>) - 旧模式包含+ x(可执行)标志,新模式不会。
git config core.filemode false
unstaged changes
area. old mode 100755
new mode 100644
755
=rwxr-xr-x
, 644
=rw-r--r--
) - the old mode included the +x (executable) flag, the new mode doesn't.git config core.filemode false