Skip to content

Instantly share code, notes, and snippets.

@guruguruman
Created June 15, 2013 08:33
Show Gist options
  • Save guruguruman/5787409 to your computer and use it in GitHub Desktop.
Save guruguruman/5787409 to your computer and use it in GitHub Desktop.
Remove '.git' from current repository
rm -rf `find ./ -type d -name .git ! -regex \.git/. -print`
#Remove '.gitignore' also.
rm -rf `find ./ -type d -name .gitignore ! -regex \.gitignore/. -print`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment