This .gitignore doesn’t ignore .emacs.d
.*
!.emacs.d
but the following does ignore it:
* <- only change
.*
!.emacs.d
Why?
This is with git-1.7.10-x86_64
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suspect that
*matches the current directory in which the file.emacs.dis.And if a directory is ignored, git won’t look inside at all (including for negate rules exceptions).
See, for more on that behavior:
gitignoreexclusion rules actually work?“.gitignoreexclude folder but include specific subfolder“The OP user273158 asks:
I suppose this should work better: