- I want to track
*.mdfiles recursively under my main~/Documentsdir. And nothing else. - However there's some subdirs under there that are their own projects with their own
.gitrepos- So those dirs can be ignored entirely, I don't need to track their
*.mdfiles in my main~/Documents/.gitrepo - But I still want to leave those subdirs where they are
- So those dirs can be ignored entirely, I don't need to track their
In my ~/Documents/.gitignore file I have:
*
!*/
!*.md
When I try running git add -A ... it fails with an error on the first subdir it comes across that has its own .git repo:
error: 'some-subdir-project-that-can-be-ignored/' does not have a commit checked out
How can I get git to just skip any of those subdirs, without needing to specifically specify every one of them to be ignored by name (either now, or any others that appear in there later on).