Importing a Capsule from a Git Provider
Create a new Capsule by copying an existing git repository with a URL.
Was this helpful?
Create a new Capsule by copying an existing git repository with a URL.
Was this helpful?
Code Ocean allows you to create Capsules by importing existing Git repositories. There are two primary methods: Copy from Public Git and Clone from Private Git.
You can create a Capsule by copying the contents of a public Git repository. This method imports the files but does not maintain a link to the original repository.
Click + on the Sidebar.
Click Copy from public Git.
Enter the URL of the Git repository
Files in the Git repository are placed into the corresponding folders in the Capsule if the names match the default folder structure (e.g., /code
, /data
).
Any additional files or folders are imported into the Other Files section.
The Starter Environment must be specified before the Capsule can be run.
There is no link between the Capsule and the original Git repository. Changes in one will not be reflected in the other.
In Code Ocean, a Capsule can be created by cloning an existing git repository in your organization's account. Unlike copying from public Git, this method maintains a connection between the Capsule and the repository. For more information about connecting your organization's Git account to Code Ocean, see the .