Skip to content

Instantly share code, notes, and snippets.

@bigdawggi
Created May 20, 2015 17:45
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 bigdawggi/f9e8ef6f6da1e96421a1 to your computer and use it in GitHub Desktop.
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
#!/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