When you navigate to https://codeocean.com/dashboard , you will see a button to import your git repository:
Click Add Capsule and
Select copy from public git
A prompt for you to provide a URL to a git repository will open. Enter the Name or URL of the Git repo to copy. The repo is cloned to the capsule.
This will start a new capsule with all files saved to the root directory,
/
. Once done, you will see a pop-up message in the bottom right corner, as shown below:
Your git history will be preserved.
If you have code and data folders, things will be automatically placed within the
/code
and/data
folders.You can rearrange things as you see fit by dragging and dropping files and folders between different directories.
To run code, you will next choose a base environment and set a master script.
Note: You can also import git repositories via the Cloud Workstation Terminal.