Creating a New Capsule by Cloning a Git Repository
Last updated
Was this helpful?
Last updated
Was this helpful?
Click New Capsule and select CloneFrom <your predefined GitHub organization>.
Enter the Name or URL of the Git repo to clone. The repo is cloned to the capsule. This can be verified by checking the provider's icon.
Switching between the different Git branches is available in your capsule's Git repository via the drop-down menu shown below. The default branch is master
unless defined otherwise in the remote Git repository. You can also create and delete Git branches from within a Cloud Workstation session.
Once you start editing the capsule, the drop-down button for switching branches is disabled until all of the changes are committed.
After the Git repo is cloned into a capsule, you can sync with the repo in a Cloud Workstation by using Git commands to push or pull as you would locally.
You can commit in the capsule integrated development environment (IDE). Commits are stored within the capsule until they are manually pushed to GitHub in a Cloud Workstation.
There are two options when duplicating a capsule linked to a Git repo.
Link to Git repository
Create a new repository in Code Ocean
This option does not link the capsule to the original Git repo, it has its own git repo on Code Ocean’s server.