Getting started with git
Git settings can be found by clicking the gear icon in the upper right, and then clicking "Git branches" in the left nav.
Adding a SSH key
To get access to the Modelbit git repo, add an SSH key. SSH keys with Modelbit's git repositories work exactly the same as GitHub and Gitlab. To generate a key, run a command like:
ssh-keygen -t ed25519-sk -C "<comment>"
Then click "Add Key" in Modelbit, and copy the contents of
~/.ssh/id_ed25519.pub into the "Key" box. Give it an easy-to-remember nickname like
"Tom's Windows Box" and click "Add Key" to save it.
For more information on Git and SSH keys, see GitHub's SSH key documentation or Gitlab's SSH key documentation.
Cloning, pushing and pulling
modelbit package to clone your workspace's git repository:
pip install modelbit
modelbit clone [target directory]
Once you have cloned the repositories, all git commands including
git push, and branch-related commands work as normal.
to pull down the latest changes, and
git commit and
git push to check in changes made manually.