In this lab, you are going to:
- Create a Clould Source repo
- Download and install the lab source files to the repo
Set the following values:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
For example,
git config --global user.email "[email protected]"
git config --global user.name "Gilbert"
Create a new Cloud Source repo:
export PROJECT_ID=$(gcloud info --format='value(config.project)')
export REDIS_REPO="redis-repo-$(date +'%Y%m%d%H%M%S')"
gcloud source repos create $REDIS_REPO
git clone https://source.developers.google.com/p/$PROJECT_ID/r/$REDIS_REPO
Deposit workshop sample app into the repo:
cd $REDIS_REPO
gsutil cp gs://redis-dev-days-workshop/google-dev-day-workshop-main.zip .
unzip google-dev-day-workshop-main.zip
mv google-dev-day-workshop-main/{*,.[^.]*,..?*} .
rm -fr google-dev-day-workshop-main
rm google-dev-day-workshop-main.zip
git add .
git commit -m "Initial commit"
git push -u origin master
You can confirm the repo has been successfully created in Google Cloud Console: