Whitelist folder inside ignored folder [duplicate]
问题 This question already has answers here : Git Including an arbitrarily nested subfolder when its parent has been excluded in .gitignore (2 answers) Closed 7 months ago . I have a node.js project with some node_modules. Now a node_module was not upto expectations and I manually changed, compiled and put it back into the node_module folder. I want to add this module to the GIT, however, the node_modules are listed in my gitignore (obviously). I tried the following /node_modules !/node_modules