git ignoring .gitattributes pattern

后端 未结 7 2093
夕颜
夕颜 2020-12-16 20:45

I\'ve a directory structure like this:

root/
  .git
  deploy/
  Site/
    blah/
    more_blah/
      something.local
      else.development
    Rakefile
             


        
7条回答
  •  独厮守ぢ
    2020-12-16 21:27

    For directories I had problems with different versions of git, so I had to include an entry both with and without a training slash:

    • foo/bar export-ignore
    • foo/bar/ export-ignore

    Where foo/bar is relative to the where I ran git archive, but the actual .gitattributes was in the project root directory in addition to --worktree-attributes as noted above.

提交回复
热议问题