Skip to content

Instantly share code, notes, and snippets.

@cklosowski
Created April 15, 2015 16:29
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 cklosowski/2a1eb3e1c3fb900f564f to your computer and use it in GitHub Desktop.
Save cklosowski/2a1eb3e1c3fb900f564f to your computer and use it in GitHub Desktop.
Quickly checkout a repo from the EDD Org
#!/usr/bin/env bash
if [ $# -lt 2 ]; then
echo "usage: $0 <plugin/theme> <repo-slug>"
exit 1
fi
TYPE=$1"s"
REPO=$2
echo "Changing Directory to:"
cd <path-to-wp-content-dir>/$TYPE
pwd
echo "Cloning Repo $REPO"
git clone git@github.com:<github-org>/$REPO.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment