Skip to main content
Tensorlake repositories are the Git source of truth for versioned file systems. They speak the standard Git smart HTTP protocol, so you can clone, branch, commit, merge, push, and fetch with ordinary git. This page covers the plain Git interface to the same repository that powers tl fs mounts. Use File System Mounts when an agent should work inside a mounted directory, persist snapshots, and promote when ready. Use Repository SDKs when you want to create repositories, inspect refs, push worktrees, or merge branches from Python or TypeScript.

Create a Repository

project_9f3c2a1b is the project your tl login is scoped to. You do not pass it to every command. You can also create a repository lazily by pushing to a repository path that does not exist yet. Lazy creation only applies to git push; git clone and git fetch require the repository to already exist.

Get a Credential

Tensorlake authenticates Git operations with HTTP Basic Auth, not SSH keys. First make sure you are logged in:
Then mint a short-lived repository credential:
The username is always t. The password is the token.

Clone

Use Git’s credential store:
Or embed the token in the URL for scripts and CI:
If the token is in a URL, treat the URL as a secret.

Branch, Commit, and Push

From here, it is ordinary Git:

Merge Changes

Tensorlake does not add a pull-request layer on top of Git repositories. Merge locally, then push the result:
A non-fast-forward push is rejected. Pull, resolve conflicts, and push again.

What Plain Git Does Not Cover

  • Workspaces, snapshots, and promotion are the tl fs model for agent sessions. See File System Mounts.
  • Workspace refs such as refs/workspaces/... are reserved on the server and cannot be updated with direct git push.
  • Archived repositories are read-only until restored with tl git restore <repo>.

Core Concepts

Learn how repositories, workspaces, mounts, snapshots, and promotion fit together.

File System Mounts

Mount repositories as directories for agent sessions.

Repository SDKs

Create repositories, push worktrees, and merge branches from Python or TypeScript.

Authentication

tl login, Git credentials, scopes, and token lifetime.

Architecture

How storage, lazy content delivery, merging, and observability work.