qruise kb checkout
Switch branches.
Syntax¶
Description¶
The qruise kb branch command switches knowledge base branches created with qruise kb branch command. Can also be used for creating branches.
Arguments¶
| Argument | Description |
|---|---|
BRANCH |
Name of the branch (optional). |
Options¶
| Option | Description |
|---|---|
-b |
Create a new branch and check it out. |
-p, --profile |
Qruise KB profile name. Deprecated. |
--profiles |
Specify path to the Qruise profiles file. Deprecated. |
--database |
Override database name. Deprecated. |
--organization |
Override organization name. Deprecated. |
--help |
Show a help message and exit. |
Examples¶
Switching branches¶
The basic usage of qruise kb checkout is to switch branches. Assuming you want to switch to a branch named my_new_branch, run:
Create and checkout a branch¶
Let's assume that there are the following branches present in the knowledge base:
If you try to check out to a branch that does not exist, e.g. does_not_exist, qruise will exit with an error message:
However, you can use the -b flag to create a branch if it does not exist:
Listing branches now reveals that does_not_exist is now the active branch: