Skip to content

Instantly share code, notes, and snippets.

@JediMindtrick
Last active August 29, 2015 14:11
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 JediMindtrick/c348d287dffd20d72f97 to your computer and use it in GitHub Desktop.
Save JediMindtrick/c348d287dffd20d72f97 to your computer and use it in GitHub Desktop.
Pull down a git repository and remove .git files with minimal network traffic
#see https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export/8963061#8963061
git clone --depth 1 --branch master git://git.somewhere destination_path
rm -rf destination_path/.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment