Skip to content

Instantly share code, notes, and snippets.

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