I'd like to exclude everything in the .git folder, except:
- The file "HEAD"
- The folders "logs" and "refs"
Unfortunately I can't find the right combination. It seems that the exclusion list is processed after the inclusion list, so if I exclude .\.git\*, adding something like .\.git\HEAD to the inclusion list doesn't help. I also tried adding .\.git to the folder exclusion list and specifying .\.git\HEAD to the file inclusion list, but no luck.
What's the right combination to get what I want?
Thanks,
Stephen
- The file "HEAD"
- The folders "logs" and "refs"
Unfortunately I can't find the right combination. It seems that the exclusion list is processed after the inclusion list, so if I exclude .\.git\*, adding something like .\.git\HEAD to the inclusion list doesn't help. I also tried adding .\.git to the folder exclusion list and specifying .\.git\HEAD to the file inclusion list, but no luck.
What's the right combination to get what I want?
Thanks,
Stephen
Comment