For a tool for cleaning large files out of git history, the first results are rtyley/bfg-repo-cleaner (BFG Repo-Cleaner is a specialized, high-performance Git history cleaner that removes large files by size or pattern, strips sensitive data, and preserves commit structure and tag references, making it a direct and comprehensive answer to your search), newren/git-filter-repo and tj/git-extras. git-lfs/git-lfs and gitextensions/gitextensions round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Utilities for identifying and permanently removing large binary files from your Git repository history.
BFG Repo-Cleaner is a Git history cleaner and repository optimizer designed to permanently remove large files and sensitive data from a project's entire commit history. It functions as a specialized purger to delete passwords and private credentials across all commits to prevent security leaks. This tool is implemented in Scala to provide high-performance processing for repository cleaning logic. It distinguishes itself by incorporating a safety mechanism that preserves the state of the latest commit, ensuring that historical cleaning does not break the current production code. The project c
BFG Repo-Cleaner is a specialized, high-performance Git history cleaner that removes large files by size or pattern, strips sensitive data, and preserves commit structure and tag references, making it a direct and comprehensive answer to your search.
Git-filter-repo is a command-line utility designed for the permanent modification and restructuring of Git repository history. It functions as a maintenance tool for cleaning project data, enabling users to reorganize file structures, update commit metadata, and purge sensitive information such as credentials or large blobs from the entire commit graph. The tool distinguishes itself by interacting directly with the internal Git object database rather than relying on standard command-line interfaces. It utilizes the native fast-import stream protocol and processes commits as a continuous data
git-filter-repo is a dedicated command-line tool that efficiently removes large files and sensitive data from Git history by directly operating on the object database, preserving tags, branches, and commit structure, and supporting dry-run mode — exactly matching every requested feature.
git-extras is a collection of command line utilities that extend the functionality of the Git version control system. It provides a suite of shortcuts and additional commands for history manipulation, remote management, repository analysis, and workflow automation. The project distinguishes itself by offering deep integration with hosting providers to manage pull requests and forks, alongside advanced history tools for obliterating sensitive files and rewriting author metadata. It also includes a specialized interactive shell that allows users to execute commands without repeating the binary
git-extras is a collection of Git command extensions that includes history‑rewriting utilities for obliterating files from commits, directly addressing the request to clean repository history; while it does not explicitly feature size‑threshold removal, it can remove files by pattern and preserve commit structure, making it a valid tool for this task.
Git Large File Storage is a Git extension that replaces large binary assets with lightweight pointers to keep repository history fast and lean. It functions as a remote binary asset store, hosting large files on a separate server instead of storing them directly in the Git history. The system includes a binary file locking mechanism to prevent concurrent edits on large assets, ensuring only one user can modify a file at a time. It also provides a virtual file system mount to expose large assets as a local filesystem without requiring a full manual checkout, and a history migration tool to con
Git LFS replaces large files with pointers and stores them externally, but it doesn't rewrite history to remove files—it keeps pointers in the commit history, so it's not a history-cleaning tool itself.
GitExtensions is a graphical user interface client for managing Git repositories. It provides a suite of visual tools for browsing commit logs, staging changes, and tracking file evolution across a project's history. The project features a commit visualizer that maps branch and merge relationships via a graphical map and a dedicated history manager for performing interactive rebases and squashing commits. It includes a visual merge conflict resolver to identify and fix overlapping code changes during merges or history rewrites. The software covers broad version control capabilities, includin
GitExtensions is a graphical Git client with history-rewriting features like interactive rebase, but it is not a dedicated tool for removing large files from history—for that, a specialized cleaner would be more appropriate.
This project is a native implementation of the Git version control system for Go applications. It provides a programmable API and a low-level plumbing toolset that allows developers to manage repositories, manipulate object graphs, and perform version control operations without requiring external system binaries or C bindings. The library is distinguished by its flexible storage and network layers, featuring a virtual file system that enables in-memory repository management to bypass disk I/O. It supports pluggable network transports and interface-based storage backends, allowing for custom p
go-git is a programmable Git implementation for Go, not a dedicated tool for rewriting history to remove large files — it provides the building blocks to create such a tool, but does not offer the size-threshold, pattern, or interactive dry-run features needed out of the box.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| rtyley/bfg-repo-cleaner | 12.2K | Scala | GPL-3.0 | |
| newren/git-filter-repo | 13.5K | Python | NOASSERTION | |
| 18.1K |
| Shell |
| MIT |
| git-lfs/git-lfs | 14.3K | Go | NOASSERTION |
| gitextensions/gitextensions | 8.4K | C# | other |
| src-d/go-git | 4.9K | Go | Apache-2.0 |