I\'ve a directory structure like this:
root/
.git
deploy/
Site/
blah/
more_blah/
something.local
else.development
Rakefile
I believe @Jefromi gave the information needed for me to resolve this with his comments, but is too humble to take the credit, and I'd like to keep my acceptance rating at 100% (quite rightly) so I'll give the answer here:
Ok, two things were needed. --worktree-attributes
on its own did not work, but when I moved the .gitattributes
file into the root dir from the Site dir, then it worked. Again, the Git book implies that the file doesn't need to be in the root for it to work "... (normally the root of your project)", so I feel a bit let down by those docs (for once). I also think it's not-what-you'd-think behaviour to have to opt in the file when .gitignore just works, IMO.