git - How to .gitignore files recursively -


i'm trying avoid following pattern in .gitignore file.

myprject/webapp/scripts/special/*.js myprject/webapp/scripts/special/*/*.js myprject/webapp/scripts/special/*/*/*.js myprject/webapp/scripts/special/*/*/*/*.js myprject/webapp/scripts/special/*/*/*/*/*.js myprject/webapp/scripts/special/*/*/*/*/*/*.js myprject/webapp/scripts/special/*/*/*/*/*/*/*.js 

we tried:

myprject/webapp/scripts/special/**.js myprject/webapp/scripts/special/**/*.js 

this didn't work. git on windows. there more concise way without repeating things?

as of git 1.8.2, this:

myprject/webapp/scripts/special/**/*.js 

should work according this answer. works me in windows 7 using sourcetree 1.6.12.0 , version of git installs (1.8.4-preview20130916).

to gitignore every file , folder under directory recursively:

myprject/webapp/scripts/special/** 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -