Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created April 22, 2013 13:40
Show Gist options
  • Save johnhamelink/5434938 to your computer and use it in GitHub Desktop.
Save johnhamelink/5434938 to your computer and use it in GitHub Desktop.
Export git repositories in one command with ZSH
# 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