Skip to content

Instantly share code, notes, and snippets.

@geekman
Created November 4, 2011 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekman/1338477 to your computer and use it in GitHub Desktop.
Save geekman/1338477 to your computer and use it in GitHub Desktop.
removes .git directories from working copy
#!/bin/sh -x
#
# killgit - removes .git directories recursively
#
find . -type d -name .git -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment