Git file permissions on Windows

后端 未结 6 2026
清歌不尽
清歌不尽 2020-12-04 04:58

I\'ve read through a few questions regarding file permissions in Git and I\'m still a bit confused. I\'ve got a repo on GitHub forked from another. Post merge, they should b

6条回答
  •  我在风中等你
    2020-12-04 05:30

    Handy one-liner for Git Bash:

    find . -name '*.sh' | xargs git update-index --chmod=+x
    

    It will mark all .sh file as executable. After that, you just have to git commit.

提交回复
热议问题