cli.sgit.ai / Command reference / sgit checkout

sgit checkout

Write tracked files into a selective working copy (a clone made with --no-checkout or --sparse); sgit branch checkout <target> switches branches.

Generated from sgit help all --format json, sgit-ai v0.26.0. No subcommands. To change this page, change the command's register() in the CLI and regenerate.

sgit checkout [options] [paths]
ArgumentWhat it is
pathsoptionalFiles or folders to write (a folder means everything under it)
OptionWhat it does
--allWrite every tracked file; the clone becomes a full one
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--changed-sinceWrite what changed between COMMIT and HEAD
--directoryVault directory (default: .)
--forceOverwrite uncommitted edits at the paths written (by default they are kept)
--no-verify-tlsSkip TLS certificate verification (staging / self-signed only)
--remoteUse the named remote (URL + tls_verify from saved config); overrides the default remote for this command
--since-pullWrite what the last pull added or changed
--tokenSG/Send access token (overrides global --token and saved config)
--transportHow to reach the vault: auto (default — a folder is local, an http(s) host is api unless its batch endpoint is absent), api (live SG/API), static (any GET host, read-only), local (a folder, read-only) One of: api, auto, local, static.
--verify-tlsVerify TLS certificates (default)

This page as markdown · its source, admin/content/reference/sgit-cli-reference.json