Challenge 2: If it isn’t in version control, it doesn’t exist

< Previous Challenge - Home - Next Challenge >

Introduction

The objective of this challenge is to create and configure a Git repository so that the code can be version controlled. You could use any external Git repository (Github/BitBucket/Gitlab etc) but the easiest way for this challenge is to use a Cloud Source Repository on GCP.

Description

If you have completed the previous challenge, you should have the source code already unpacked on your User-Managed Notebook. But you’re free to complete this challenge on another environment such as Cloud Shell or your local machine.

Create a Cloud Source Repository, configure access through SSH.

Make sure that the source code is pushed to the freshly created repository and can be cloned from it.

Success Criteria

  1. There’s a new Cloud Source Repository
  2. The code base is pushed to Cloud Source Repository
  3. At least one team member can access the repository from the command line
  4. No code changes are needed for this challenge

Tips

  • The previous challenge required you to use single-user notebooks, so if you want to complete this challenge in a notebook as a different user, you’ll have to create a new notebook. In that case create another single-user notebook for the new user and download the repository. You don’t need to run the notebook or create the virtual environment for this challenge.
  • Alternatively you could use the Cloud Shell to complete this challenge.

Learning Resources

< Previous Challenge - Home - Next Challenge >