I have a repo that ignores everything except a few files and the .gitignore
looks like this:
# first ignore everything
*
# then whitelist what's needed
!*/
!.gitignore
!wordpress/wp-content/plugins/check-last-login/*
!wordpress/wp-content/plugins/wp-issuetracker/*
!mediawiki/extensions/single-signon/*
This repository is a child repository. It is inside of another repository, the parent. The child repository is ignoring everything except the few things just fine, but the parent is also doing the same, but I don't want it to.
It seems like the parent repo follows the ignore rules of the child repo's .gitignore
file. I tried .gitignoring the .gitignore
file of the child repo but that didn't work in making the parent track all files.
How can I make the parent not ignore any of the files that the child ignores?