Skip to content

Instantly share code, notes, and snippets.

@takuji31
Created February 12, 2011 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuji31/823965 to your computer and use it in GitHub Desktop.
Save takuji31/823965 to your computer and use it in GitHub Desktop.
#!/bin/sh
project=$1
to_dir=$2
github_user="username"
if test "$project" = ""
then
exit
fi
if test "$to_dir" = ""
then
git clone git@github.com:$github_user/$project
else
git clone git@github.com:$github_user/$project $to_dir
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment