Skip to content

Instantly share code, notes, and snippets.

@wsargent
Created October 11, 2016 16:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsargent/1a88ffc561331e11bdf27fd42c3ae47d to your computer and use it in GitHub Desktop.
Save wsargent/1a88ffc561331e11bdf27fd42c3ae47d to your computer and use it in GitHub Desktop.
# Usage: gh-clone lagom lagom to checkout lagom/lagom
function gh-clone() {
OWNERNAME=$1;
PROJNAME=$2;
cd $WORKDIR;
mkdir $PROJNAME;
cd $PROJNAME;
hub init -g
hub clone $OWNERNAME/$PROJNAME master;
cd master;
hub fork;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment