git - .gitignore **/* but not <something>/* -
I have .gitignore (especially a partially designed spring application's webpage folder In) include:
** / *! .gitignore! Meta-INF / *! WEB-INF / *! Index.jsp I want to be created except by ignoring all those files except those which are with the lines of negation, but !
I tried ** / * with entry: * , / * , / ** Instead of / * , none of those who are going to solve this issue.
I do not like to explicitly list which to not listen and to explicitly add items, although I am currently doing this.
Any thoughts?
found solution: specifically ignore files in the current directory, and do not ignore folders whose Track all, instead of ignoring the content of those folders I want to content.
The resulting .gitignore file is:
/ *! .gitignore! Meta-INF! WEB-INF
Comments
Post a Comment