DOKK / manpages / debian 12 / git-lfs / git-lfs-dedup.1.en
GIT-LFS-DEDUP(1)   GIT-LFS-DEDUP(1)

git-lfs-dedup - Deduplicate Git LFS files

git lfs dedup

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.

Part of the git-lfs(1) suite.

2023-04-09