Reputation: 41665
I'd like to ignore directories if it has it's own .git
directory.
project-root
- sub-project1 (with `.git`)
- sub-project2 (with `.git`)
- other files
How can I tell(.gitignore
) to ignore all the directories with its own .git
such as sub-project1/2 ?
Upvotes: 1
Views: 60
Reputation: 1324278
You would need a script which would:
dirname
).gitignore
(if not already present)Upvotes: 1