Created
April 22, 2013 13:40
-
-
Save johnhamelink/5434938 to your computer and use it in GitHub Desktop.
Export git repositories in one command with ZSH
This file contains 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
# Export git repositories in one command with ZSH | |
# Requires the git repo url and the desired folder to output the repo to | |
# Example: git-export https://github.com/toddmotto/html5blank.git html5blank | |
git-export() { | |
git clone --depth=1 "$@" | |
rm -rf "$2"/.git | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment