Skip to content

tg auth git-credential

Git credential helper for HTTPS push to Tangled knots

Provide HTTPS credentials for Git pushes to a Tangled knot.

Configure the helper for a knot:

git config --global credential."https://<knot>".helper "!tg auth git-credential"

Point the remote at that knot:

git remote set-url origin https://<knot>/<handle>/<repo>.git

The helper mints a short-lived token only for the current repository’s recorded knot. It does not store credentials.

tg auth git-credential <operation> [flags]
-h, --help help for git-credential
--account string Account handle or DID to use (overrides the active account and TG_ACCOUNT)
--appview string Appview host URL (overrides config file and TG_APPVIEW) (default "https://bobbin.klbr.net")
--config string Path to config file (default: $XDG_CONFIG_HOME/tg/config.toml)
--json Output in JSON format