Created
April 15, 2015 16:29
-
-
Save cklosowski/2a1eb3e1c3fb900f564f to your computer and use it in GitHub Desktop.
Quickly checkout a repo from the EDD Org
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
#!/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