Skip to content

Instantly share code, notes, and snippets.

@navicore
Created April 4, 2016 22:19
Show Gist options
  • Select an option

  • Save navicore/9cae6cbceacf5f98271619be52106f04 to your computer and use it in GitHub Desktop.

Select an option

Save navicore/9cae6cbceacf5f98271619be52106f04 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
ROOT="[email protected]:navicore"
UPSTREAM_ROOT="[email protected]:tableco"
REPOS=(
authsvc
chippendale
collectionsvc
contactsvc
devicesvc
devops
ernest
expertisesvc
frank
junebug
mailsvc
membersvc
messagesvc
notificationsvc
piecesvc
postalsvc
presencesvc
profilesvc
projectsvc
reviewsvc
roomsvc
tablelib
tablesvc
tfetable
tfeturntable
ui
)
for repo in "${REPOS[@]}"
do
repo_loc=$ROOT/$repo
upstream_loc=$UPSTREAM_ROOT/$repo
echo "cloning $repo"
cd $DIR && git clone $repo_loc && cd $DIR/$repo && git remote add upstream $upstream_loc && fetchupstream && git checkout staging
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment