Skip to content

Instantly share code, notes, and snippets.

@JeffHerb
Created March 12, 2014 00:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffHerb/9497790 to your computer and use it in GitHub Desktop.
Save JeffHerb/9497790 to your computer and use it in GitHub Desktop.
If you ever have the need to completely remove the contents of a git project folder, but want to retain the .git
for i in `ls | grep -v ".git"` ; do rm -rf $i; done; rm .gitignore;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment