Last active
August 29, 2015 13:59
-
-
Save aj0strow/10891788 to your computer and use it in GitHub Desktop.
Git Clone
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
# clone username package | |
function clone { | |
if [! -z $2] | |
then repo="$1/$2" | |
else repo="$1" | |
fi | |
git clone "[email protected]:$repo.git" && cd $(basename $repo) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment