Skip to content

Instantly share code, notes, and snippets.

@turing4ever
Last active March 13, 2018 21:38
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 turing4ever/f3b98cc7625331ab1781d66a4ce2a8b7 to your computer and use it in GitHub Desktop.
Save turing4ever/f3b98cc7625331ab1781d66a4ce2a8b7 to your computer and use it in GitHub Desktop.
# Clone the repo, depth=1 means only last 1 commit
git clone --depth=1 git://urloftherepo
# Remove the .git directory recursively
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment