How to stop git from making files non-executable on cygwin?

后端 未结 3 1354
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 16:08

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

相关标签:
3条回答
  • 2020-12-12 16:40

    I've met the same problem. git update-index --chomd=+x doesn't work for me.

    I use chmod +x , then commit, it works perfect.

    0 讨论(0)
  • 2020-12-12 16:47

    You should start with git update-index --chmod=+x <file>.

    But this does not change your working copy, for that:

    git checkout .
    
    0 讨论(0)
  • 2020-12-12 16:55

    I believe you want git update-index --chmod=+x <file>, followed by a commit.

    0 讨论(0)
提交回复
热议问题