Skip to main content
Returns a JWT-authenticated remote URL targeting the +import push namespace. Pushing to this URL triggers immediate cold-storage archival after pack distribution—useful for bulk ingestion where you don’t need the repository to stay on hot disk.

Options

string[]
Array of permissions. Defaults to ["git:read", "git:write"].
number
Token TTL in seconds. Defaults to 1 year.
object[]
Ordered ref policy rules ({ pattern, ops? }). Code Storage uses the first rule that matches the target ref. It treats a pattern without refs/ as a branch name. Python: ref_policies. Go: RefPolicies with type storage.RefPolicyList. See getRemoteURL() for operations and Ref Policies for use.

Response

Returns a string containing the HTTPS Git remote URL with embedded JWT authentication:

Usage

Use the URL as a standard Git remote. Pushing to it enqueues cold-storage archival immediately after the pack distributes to all nodes:
See the Import Namespace guide for bulk ingestion workflows and cold-storage behavior.