Created
April 12, 2013 23:53
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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