public
Created

Export git repositories in one command with ZSH

  • Download Gist
.zshrc
Shell
1 2 3 4 5 6 7
# 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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.