如何停止git使文件不可执行的cygwin? [英] How to stop git from making files non-executable on cygwin?
本文介绍了如何停止git使文件不可执行的cygwin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过cygwin在Windows上使用git,并很快决定使用 filemode = false
(因为否则我在初始git克隆后有很多更改)。我绝对不感兴趣跟踪权限,唯一认为我需要的是一些文件是可执行文件。有时,我发现有些文件上的 x
标志丢失了,我强烈地认为它是因为git。
I use git on Windows via cygwin and soon decided to use filemode=false
(since otherwise I've got a lot of changes after the initial git clone). I'm definitely not interested in tracking permission at all, the only think I need is for some files to be executable. From time to time, I find that the x
flag on some files gets lost and I strongly suppose it's because of git.
我会满意的解决方案允许在需要时执行 chmod a + x ...
。
I'd be happy with a solution allowing to execute chmod a+x ...
when needed.
推荐答案
我相信你想要 git update-index --chmod = + x< file>
这篇关于如何停止git使文件不可执行的cygwin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文