Skip to main content
The sandbox.git module in the JavaScript and Python SDKs is deprecated. It still works today, but it will be removed in the next major version of the SDKs. See the SDK deprecation PR for the full list of deprecated symbols.

Migrate to sandbox.commands.run()

Git is installed in the sandbox, so every sandbox.git call has a direct equivalent as a shell command.
For private repositories, pass the token through envs so it is not baked into the command string you log.
Unlike sandbox.git.status() and sandbox.git.branches(), the commands module returns raw stdout, so parse the output yourself (for example with git status --porcelain=v2). The existing sandbox.git reference remains available on the Git integration page.