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