Skip to content

tg auth git-credential

Authenticate HTTPS pushes from Git

Use tg as a Git credential helper for HTTPS pushes.

Configure Git to call tg for tangled.org:

git config --global credential."https://tangled.org".helper "!tg auth git-credential"

Then use an HTTPS remote:

git remote set-url origin https://tangled.org/<repo-did>

tg returns a short-lived token for the repository’s Knot. It does not store the token.

tg auth git-credential <operation> [flags]
-h, --help help for git-credential
--account string Account handle or DID
--appview string Appview URL (default "https://bobbin.klbr.net")
--config string Config file (default: $XDG_CONFIG_HOME/tg/config.toml)
--json Print JSON output
  • tg auth - Log in and manage accounts