Created
May 20, 2015 17:45
-
-
Save bigdawggi/f9e8ef6f6da1e96421a1 to your computer and use it in GitHub Desktop.
Clones github repos and fetches WPEngine staging and production repos - then adds wpremote
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
#!/bin/bash | |
cd /installs/ | |
echo -e "Please enter the repository name for the Github repo (Example: angelfire): \c " | |
read GITHUBSLUG | |
git clone git@github.com:TMBR/${GITHUBSLUG}.git | |
cd ${GITHUBSLUG} | |
echo -e "Please enter the WPEngine Install name (Example: angelfireresor): \c " | |
read WPESLUG | |
git remote add staging git@git.wpengine.com:staging/${WPESLUG}.git | |
git remote add production git@git.wpengine.com:production/${WPESLUG}.git | |
git fetch staging && git fetch production | |
cp -r ~/wpremote wp-content/plugins/ | |
git add . | |
git commit -m "adding wpremote" | |
echo -e "Please review the status of origin, production, and staging and push as needed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment