git-lfs-dedup(1)

git-lfs-dedup1

Deduplicate git lfs files

Usage

git lfs dedup

Overview

Deduplicates storage by re-creating working tree files as clones of the files in the Git LFS storage directory using the operating system’s copy-on-write file creation functionality.

If the operating system or file system don’t support copy-on-write file creation, this command exits unsuccessfully.

This command will also exit without success if any Git LFS extensions are configured, as these will typically be used to alter the file contents before they are written to the Git LFS storage directory, and therefore the working tree files should not be copy-on-write clones of the LFS object files.

Options

-t, --test

Checks whether the current operating system and file system support copy-on-write file creation, without actually cloning any Git LFS files.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

--test since Arch Linux 2026-11-01; -t since Arch Linux 2026-11-01.

From git-lfs 3.8.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.