Git & Swarmfile

Your Git. Bigger files. No migration required.

Keep your git host. Point LFS at Swarmfile for the large objects, clone over swarmfile:// when you want the history in place, and use a CLI that speaks the Git habits you already have.

Clone + push · real commandsids preserved
$ git clone swarmfile://<org>/<repository>Cloning into '<repository>'...$ git log -1 --format=%Hd4e5f6a9c2b1... # the same id your git host has$ git pushTo swarmfile://<org>/<repository> d4e5f6a9..e7f8a9b0 main -> main

Clone the history you already have; a push keeps every existing commit id unchanged.

git-lfsStock client, no fork. The pointers in your history keep working.
swarmfile://Clone, fetch and fast-forward push through the shipped helper.
CLIcommit, branch, merge, restore - the Git vocabulary.
01 · Three ways in

Meet Swarmfile at the Git you use.

Keep the host, add the big files, or take the whole history. None of the three asks you to migrate.

LFS

Keep your host. Move the big files.

lfs.url = https://hub.swarmfile.com/orgs/<org>/lfs/<repository>

Point lfs.url at Swarmfile and the binaries move first. On an unencrypted repository stock git-lfs works; the bundled agent lifts pushes to 256 GiB and is required on managed repositories. Turn on git access and the code can come too.

Clone

A clone source when you want the history.

git clone swarmfile://<org>/<repository>

With git access on, clone, fetch and fast-forward push through the swarmfile:// helper; public repositories clone anonymously, read-only. From GitHub? swarmfile git import keeps history - how the histories line up.

CLI

Git habits, without the packfile.

swarmfile commit · branch · merge

swarmfile speaks commit, branch, switch, restore, merge, tag and changelists. add, stash, reset and clone run the real operation; push, pull, rebase tell you what to do instead.

None of this is a one-way door: your git host keeps working beside Swarmfile, and the exit is stock tooling - git lfs fetch --all pulls every LFS object back down with plain git-LFS, and swarmfile materialize writes any ref to a plain directory. Leaving Swarmfile →

02 · Git-LFS

Keep your host, move the big files.

Commit one .lfsconfig. Your remote never changes, and the pointers already in your history keep working.

  • Stock client or agent. On an unencrypted repository, stock git-lfs direct-pushes objects up to ~5 GiB. The bundled swarmfile-lfs agent does chunked, resumable pushes up to 256 GiB and is required on a managed (encrypted) repository.
  • Locks and both directions. git lfs lock is the same lock the desktop app uses. A file saved in the workspace is git lfs pull-able by its oid, and a pushed object can be reflected into the workspace as a real file.
  • Walk away any time. git lfs fetch --all brings every object home with stock git-LFS. Your repository never depended on Swarmfile for anything else.
.lfsconfig
committed to the repository root
[lfs]
  url = https://hub.swarmfile.com/orgs/<org>/lfs/<repository>

The big files go to Swarmfile; the code stays on your host until you turn on git access. Full Git-LFS guide.

Encryption caveat
Managed (encrypted)

Uploads go through the transfer agent and are stored encrypted at rest, at every size up to 256 GiB; a stock direct push is refused with lfs_agent_required.

Unencrypted

Every Free-plan and public repository: stock direct uploads are accepted up to ~5 GiB and are plaintext by definition.

End-to-end encrypted

Git-LFS isn’t available. A binary that must stay end-to-end encrypted belongs in the workspace of an end-to-end-encrypted repository.

On a managed repository, objects uploaded before the agent rule may still be plaintext until the operator’s migration reports clean; ask support to confirm. How Swarmfile encrypts →

03 · Compatibility

Git operations at a glance.

Two tables: what clones and pushes, and what imports. Run swarmfile git preflight <url> for the import verdict on yours.

Yesnatively supportedWorkaroundrefused, with a documented alternativeNonot available

Clone, fetch and push

OperationStatusNotes
git clone / git fetchYesThrough the swarmfile:// helper; --depth, --deepen and --unshallow work. Anonymous clone is read-only and on by default for public git-enabled repositories.
Fast-forward git pushYesFast-forward only, merges included; side history is archived, a protected branch opens a merge request, and pushes over 5,000 paths are resumable. Executable bits round-trip.
Force push / history rewriteWorkaroundRaw force push is refused. swarmfile git force-forward lands the end state as a new forward commit, so every commit stays reachable.
Lightweight tagsYesPush, move and delete.
Annotated tagsYesPush and clone preserve the exact tag object (message, tagger, signature and id); import keeps it by default. Moving a published tag needs --force; a release tag is protected.
SubmodulesYesGitlinks push and clone with their exact target id; the workspace hides the submodule path. Import is stricter (see below).
Octopus merges (3+ parents)YesAccepted when every parent after the second is already on Swarmfile; push the side branches first, then the merge.
End-to-end encrypted repositoriesYesClone and push work through the desktop engine helper, or the standalone/API-key helper with this device’s user key; LFS stays refused.
HTTPS git remotesWorkaroundThe helper speaks swarmfile:// only. An operator can run the read-only swarmfile-git-gateway for public plaintext repositories; otherwise use the helper.
  • git clone / git fetchYes

    Through the swarmfile:// helper; --depth, --deepen and --unshallow work. Anonymous clone is read-only and on by default for public git-enabled repositories.

  • Fast-forward git pushYes

    Fast-forward only, merges included; side history is archived, a protected branch opens a merge request, and pushes over 5,000 paths are resumable. Executable bits round-trip.

  • Force push / history rewriteWorkaround

    Raw force push is refused. swarmfile git force-forward lands the end state as a new forward commit, so every commit stays reachable.

  • Lightweight tagsYes

    Push, move and delete.

  • Annotated tagsYes

    Push and clone preserve the exact tag object (message, tagger, signature and id); import keeps it by default. Moving a published tag needs --force; a release tag is protected.

  • SubmodulesYes

    Gitlinks push and clone with their exact target id; the workspace hides the submodule path. Import is stricter (see below).

  • Octopus merges (3+ parents)Yes

    Accepted when every parent after the second is already on Swarmfile; push the side branches first, then the merge.

  • End-to-end encrypted repositoriesYes

    Clone and push work through the desktop engine helper, or the standalone/API-key helper with this device’s user key; LFS stays refused.

  • HTTPS git remotesWorkaround

    The helper speaks swarmfile:// only. An operator can run the read-only swarmfile-git-gateway for public plaintext repositories; otherwise use the helper.

Import

OperationStatusNotes
Import an existing repositoryYesswarmfile git preflight <url> first; swarmfile git import then creates the repository and pushes every branch and tag it can hold.
Annotated tagsYesKept as the exact tag object by default; --annotated-tags convert|skip|fail changes that.
SubmodulesWorkaroundAn affected side branch is skipped and listed; an affected default branch refuses the import. The preflight names it.
Octopus merges (3+ parents)WorkaroundSame shape: side branches skip, the default branch refuses, and the preflight names the commit.
A branch tracked by git-LFSNoThe import refuses it (the pointer is not a materialized file). Use the LFS backend or move the files off LFS; the preflight lists the .gitattributes.
Large literal blobsWorkaroundThe hub refuses a blob at or above the repository threshold (1 MiB by default). The preflight lists the largest historical blobs and suggests --threshold-bytes.
  • Import an existing repositoryYes

    swarmfile git preflight <url> first; swarmfile git import then creates the repository and pushes every branch and tag it can hold.

  • Annotated tagsYes

    Kept as the exact tag object by default; --annotated-tags convert|skip|fail changes that.

  • SubmodulesWorkaround

    An affected side branch is skipped and listed; an affected default branch refuses the import. The preflight names it.

  • Octopus merges (3+ parents)Workaround

    Same shape: side branches skip, the default branch refuses, and the preflight names the commit.

  • A branch tracked by git-LFSNo

    The import refuses it (the pointer is not a materialized file). Use the LFS backend or move the files off LFS; the preflight lists the .gitattributes.

  • Large literal blobsWorkaround

    The hub refuses a blob at or above the repository threshold (1 MiB by default). The preflight lists the largest historical blobs and suggests --threshold-bytes.

Looking for the full list of gaps? Known Limitations covers rebase, history rewriting, E2E with LFS and more.

No card to start. Start free →

04 · Fit and gaps

Works today. What to do instead.

Works today
  • Anonymous clone of a public repository

    A public, git-enabled repository clones read-only with no account and no credential (on by default; an owner can turn it off, and a committed publicignore policy that hides live paths refuses it). The standalone open-source swarmfile-git-remote helper does it without the desktop app.

  • Verifiable, reproducible history

    Every clone computes the same commit ids, a pushed commit comes back byte-identical, and a teammate’s fetch (or swarmfile git index) confirms pushed commits.

  • Git habits in the swarmfile CLI

    commit, branch, switch, restore, merge, tag, changelists, add, stash, reset.

  • External CI status checks on merge requests

    Your CI reports a status; the merge request shows it.

  • One-click GitHub App onboarding

    One click installs the Swarmfile GitHub App and opens the pull request that points your repository’s LFS at Swarmfile; the manual .lfsconfig path always works.

Instead
  • E2E + LFS

    Clone and push work through the desktop or user-key helper; LFS stays refused. Keep LFS binaries in a managed or plaintext repository.

  • --shallow-since / --shallow-exclude

    Use --depth, --deepen and --unshallow.

Weighing it against your current setup? Swarmfile vs. GitHub LFS, or the developer quickstart.

05 · Agents

Running coding agents against the repo?

Give each agent a workspace instead of a clone or a worktree per task: one repository, a workspace each (sparse, branch-pinned, or both), one shared dependency cache per machine and a durable queue for a scaffolding burst - with git clone and the fast-forward git push above still working beside it. The shipped pattern is in the coding-agents guide.

Point one repo at it.

Public repositories and private unencrypted repositories are free and need no card. Encrypted private repositories come with a 7-day free trial on Starter or Pro. Card on file, nothing charged until day 7. A trial covers up to 2 seats; add more once it converts.