Branch a Project
How-to create a new branch in TerminusDB and TerminusCMS using the Python Client
Assuming you have connected with the Python Client and created a database you can then create a branch of your project.
Creating a branch is the same for TerminusDB and TerminusCMS. By default in TerminusDB or TerminusCMS you are working in the main branch.
Create a new branch from main branch
Use this code to create a new branch starting from branch main head.
If you add documents to the mybranch
, they won't end up in the main
branch unless you merge them.
Create a new branch from mybranch branch
Now you are in the branch called mybranch
.
You can create a new branch starting from the mybranch
head. Since we are checked out on the "mybranch" already, we can just create a new branch from there. It will have mybranch
as its parent.
Get a branch list
Get all of the data product's branches in a list using a method
Response example
Last updated