Skip to content

Instantly share code, notes, and snippets.

@fliptheweb
Created April 12, 2013 23:53
Show Gist options
  • Save fliptheweb/5376103 to your computer and use it in GitHub Desktop.
Save fliptheweb/5376103 to your computer and use it in GitHub Desktop.
Alias for downloading repo from github or smthg else without git files, just raw. Sad, but command git --archive dont work on github (https://help.github.com/articles/can-i-archive-a-repository) Usage: git download [email protected]:some-repo.git
[alias]
download = "!f() { git clone --depth 1 $1 ./git-download-tmp/; rm -rf git-download-tmp/.git/; cp -r git-download-tmp/* ./; rm -rf git-download-tmp; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment