git-lfs-uninstall(1)

git-lfs-uninstall1

Remove git lfs configuration

Usage

git lfs uninstall

Overview

Perform the following actions to remove the Git LFS configuration:

• Remove the "lfs" clean and smudge filters from the global Git config.

• Uninstall the Git LFS pre-push hook if run from inside a Git repository.

Options

-l, --local

Removes the "lfs" smudge and clean filters from the local repository’s git config, instead of the global git config (~/.gitconfig).

-w, --worktree

Removes the "lfs" smudge and clean filters from the current working tree’s git config, instead of the global git config (~/.gitconfig) or local repository’s git config ($GIT_DIR/config). If multiple working trees are in use, the Git config extension worktreeConfig must be enabled to use this option. If only one working tree is in use, --worktree has the same effect as --local. This option is only available if the installed Git version is at least 2.20.0 and therefore supports the "worktreeConfig" extension.

--system

Removes the "lfs" smudge and clean filters from the system git config, instead of the global git config (~/.gitconfig).

--file=<file>

Removes the lfs smudge and clean filters from the Git configuration file specified by the <file> argument.

--skip-repo

Skips cleanup of the local repo; use if you want to uninstall the global lfs filters but not make changes to the current repo.

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

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

--file since Arch Linux 2026-11-01; --worktree since Debian 11 (Bullseye); -l since Arch Linux 2026-11-01; -w 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.