Git file permissions on Windows

后端 未结 6 2032
清歌不尽
清歌不尽 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:42

    From another question here on stackoverflow: How do I make Git ignore file mode (chmod) changes?

    Try:

    git config core.filemode false
    

    From git-config(1):

       core.fileMode
           If false, the executable bit differences between the index and the
           working copy are ignored; useful on broken filesystems like FAT.
           See git-update-index(1). True by default.
    

提交回复
热议问题