Skip to main content

Cloning your workspace

Use modelbit clone to clone the git repository to your local machine.

warning

Don't use git clone with Modelbit workspaces. Using modelbit clone ensures your local repo is configured to work with Modelbit.

Cloning, pushing and pulling

Install the modelbit package and run modelbit clone to clone your workspace's Git repository:

pip install --upgrade modelbit

modelbit clone

Once you have cloned the repository, all Git commands including git pull, git push, and branch-related commands work as normal. Use git pull to pull down the latest changes, and git commit and git push to check in changes.

After making changes, run modelbit validate to check that your changes look good.

Adding an SSH key

Calling modelbit clone will upload your SSH public key.

However, if you want to generate a new key and upload it in the web app, use key use ssh-keygen:

ssh-keygen -t ed25519 -C "<comment>"

Then in Modelbit, open Settings and under User Settings click SSH Keys.

Then click Add Key. In the form, copy the contents of your key (e.g. ~/.ssh/id_ed25519.pub) into the Key box and give it a nickname. Click Add Key to save your SSH key in Modelbit.

For more help on generating SSH keys, see GitHub's SSH key documentation.