diff --git a/go/libraries/doltcore/doltdb/AGENT.md b/go/libraries/doltcore/doltdb/AGENT.md index 1e384e3d7b..7096388275 100644 --- a/go/libraries/doltcore/doltdb/AGENT.md +++ b/go/libraries/doltcore/doltdb/AGENT.md @@ -50,6 +50,7 @@ dolt checkout -b - Each SQL session (CLI `dolt sql`, MySQL client, application connection) maintains its own active branch. Run `CALL dolt_checkout('');` at the beginning of every session or scripted block to ensure you are on the correct branch. - Chain branch changes inside scripts: start with `CALL dolt_checkout('');`, then run your queries. Do not assume a previous checkout persists for new connections. - When automating, include the checkout in the same transaction / session context where the data changes execute. +- A good way to make sure a `dolt sql` session connects to the br1 branch for instance is `dolt --branch br1 sql`. ### Data Operations ```bash