version control - git wildcard - remove all instances of a subdirectory -


i trying execute git rm --cached -r <folder> remove instances of folder named .svn recursively. have tried this:

.svn /.svn /*/.svn /*/*/.svn  etc  

and works, i'm sure there more dynamic way.

thanks

the right solution be:

find . -type d -name '.svn' -print0 | xargs -0 git rm --cached -r -- 

@gregor's fail on directories spaces.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -