Clean Up Directories Prior to Initializing Repository

Billy Heaton 1 min read
  • remove junk like .DS_Store or clean out repositories like folders named CVS .svn .git

    • -type d for directories f for files

    find . -name '.svn' -type d | xargs echo

    find . -name '.svn' -type d | xargs rm -rf

    find . -name '.git' -exec rm -rf {} ;

    find . -name '.DS_Store' -type f | xargs rm -rf

About the Author

Billy Heaton
Billy Heaton

Software engineer with two decades of experience who favors Ruby and JavaScript to build web applications