git ignoring .gitattributes pattern

后端 未结 7 2088
夕颜
夕颜 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:45

    Are you trying to have the files included in the repository but not in the archive created from git archive? If so the syntax of your .gitattributes files wrong. If not then .gitattributes is not what you should be using.

    To have files excluded from the archive produced by git archive you should put the following into the .gitattrubutes.

    Rakefile export-ignore
    

提交回复
热议问题