Last active
August 29, 2015 13:58
-
-
Save itsananderson/10351856 to your computer and use it in GitHub Desktop.
Add a "git hub" alias that clones from a username/repo argument
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
# Usage: | |
# | |
# git hub itsananderson/web-server | |
# git hub itsananderson/web-server other-folder | |
# | |
# Let me know if there's a better way of doing this | |
# http://twitter.com/itsananderson | |
git config --global alias.hub \!"sh -c 'git clone git@github.com:\$1.git \${@:2}' -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want that second example line to read
git hub ...
instead ofget hub ...
?