I'm very new to GCP/AI Platform/Git/etc., so please bear with me.
I am trying to connect an AI Platform Notebook & VM to a Google Cloud Source Repository. I am not the only one at my organization who will be working on the code in the repo, so it's important that multiple people maintain access to it. My goal is to be able to instantiate a Notebook/VM in AI Platform Notebooks, fork/clone the repo, make changes as needed, and push back to my fork of the repo (eventually merging with master branch down). I would also like to have my VM persist, spinning it up and down as needed, pulling and pushing from/to the repo at will.
Surprisingly, I have found no documentation on connecting AI Platform with Cloud Source Repositories.
When I try to clone a repo in CSR, it asks for SSH credentials but I am not very familiar with that process. I was able to generate an RSA key pair from the SSH command line for my particular VM instance, but I don't know what to do from there (most importantly, I want to be sure that multiple people can fork/clone the master repo).
Thanks in advance for any help you can provide.
Just an update, I found a method that works (I'm sure there are alternatives):
Open JupyterLab
All Repositories
, click on the name of the repo you wish to clone.+ Clone
button in the top-right corner, then click on How to setup?
Manually generated credentials
, then click Generate and store your Git credentials
ENTER
git clone https://source.developers.google.com/p/<REST_OF_REPO_LOCATION_HERE>
, being sure to use your repo's locationGit
> Git Interface