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 ! lines do not work and all files in those folders are ignored.

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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -