Posted by Dan Sosedoff
on June 15, 2010
Snippet (found on net) for removing files from repository that are no longer present under your project.
$ git rm $(git ls-files -d)
For best use add it to bash alias file: ~/.bashrc or ~/.bash-aliases (under ubuntu):
alias gitclean='git rm $(git ls-files -d)'
Posted by Dan Sosedoff
on February 06, 2009
Sometimes it`s necessary to delete all .svn directories that were created by subversion version control system. This shell command will work on all unix systems:
rm -rf `find . -name .svn`
That`s it!