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
Post a Comment