newren/git-filter-repo
View on GitHub ↗ ★ 13,475 Python
Quickly rewrite git repository history (filter-branch replacement)
27 mentions on Hacker News by 23 people: 5 stories, 22 comments · first 2019-08-21 · latest 2026-10-01
20082026
-
…git-filter-repo actually does it by default; see `--preserve-commit-hashes` in the manual[2]. [1]: https://github.com/newren/git-filter-repo [2]: https://htmlpreview.github.io/?https://github.com/newren/git...
comment by oasisaimlessly · 2026-10-01 · in Git 3.0's upcoming SHA-256 default will be a costly mistake -
…use tools like git-filter-repo. - https://docs.github.com/en/authentication/keeping-your-accou... - https://github.com/newren/git-filter-repo
comment by plastic041 · 2026-09-18 · in Bend – a language that blocks AI mistakes via proof and runs on GPUs -
▲ 62
Quickly rewrite Git repository historystory by modinfo · 2026-07-21 · 13 comments
-
…slow. Handwritten bash scripts using git-replace and git-filter-repo [1] did a much better job [1]: https://github.com/newren/git-filter-repo
comment by nbobko · 2026-07-01 · in Google copybara: moving code between repositories -
▲ 2
Git-Filter-Repostory by rglover · 2025-08-20 · 0 comments
-
…like these: https://rtyley.github.io/bfg-repo-cleaner/ https://github.com/rtyley/bfg-repo-cleaner https://github.com/newren/git-filter-repo https://github.com/tiavision/GitRewrite See also: https://stackoverflow.com/questions/5613345/how-to…
comment by zackmorris · 2025-06-22 · in Git Notes: Git's coolest, most unloved feature (2022) -
▲ 2
Git-filter-repo: Quickly rewrite Git repository historystory by ingve · 2024-12-02 · 0 comments
-
An approach I've used is to use https://github.com/newren/git-filter-repo (amazing, versatile tool) to put the tree into a subdirectory, and namespace its tags, and then merge that into another tree with --allow-unrelated-histories. I…
comment by oftenwrong · 2024-11-09 · in Monorepo – Our Experience -
filter-repo is the recommended way these days: https://github.com/newren/git-filter-repo
comment by cocok · 2024-10-27 · in We shrunk our Javascript monorepo git size -
I recommend using https://github.com/newren/git-filter-repo instead of filter-branch.
comment by oftenwrong · 2024-01-02 · in Moving Git commits between repos (2017) -
…and its --commit-callback flag , which lets you modify commit objects with a custom Python snippet. https://github.com/newren/git-filter-repo
comment by oftenwrong · 2023-11-04 · in Ask HN: Project that amends Git history based on a schedule -
I'd first check whether `git fsck` gives you more information. There isn't a simple and fast way to find parent objects, but here is a slow hack: git_find_references() { if [ "$#" -ne 1 ] || [ "${1#-}" != "$1" ]; then echo "usage:…
comment by hddqsb · 2023-09-15 · in In a Git repository, where do your files live? -
…before proceeding to abort, then use an alternative filtering tool such as 'git filter-repo' (https://github.com/newren/git-filter-repo/) instead. See the filter-branch manual page for more details; to squelch this warning, set…
comment by andrewfromx · 2023-04-09 · in Show HW: Removed large file from Git (and history too) -
…dependency) dissuade you from using an easier and faster alternative to git filter-branch. [1] https://github.com/newren/git-filter-repo
comment by WorldMaker · 2023-01-23 · in Git commands you probably do not need -
…before proceeding to abort, then use an alternative filtering tool such as 'git filter-repo' (https://github.com/newren/git-filter-repo/) instead. See the filter-branch manual page for more details; to squelch this warning, set…
comment by nunez · 2022-10-09 · in Git making me want to pull my hair out yet again -
Similarly there's also git-filter-repo: https://github.com/newren/git-filter-repo It's in Python so runs pretty much everywhere *nix out of the box.
comment by sofixa · 2022-08-08 · in Starting October 19, storage limit will be enforced on all Gitlab Free accounts -
These days https://github.com/newren/git-filter-repo is superior.
comment by CrazyPyroLinux · 2022-08-06 · in Git In Two Minutes (updated after 8 years) -
You’d have to rewrite the commit history for each of those repos and force push those changes. https://github.com/newren/git-filter-repo would be a decent starting point.
comment by Arubis · 2022-04-10 · in Tell HN: Startups harvesting GitHub commit emails for marketing purposes -
…code snippets often use it). Use git-filter-repo's --to-subdirectory-filter and --tag-rename: https://github.com/newren/git-filter-repo#solving-this-with-...
comment by oftenwrong · 2022-02-23 · in Everything you need to know about monorepos -
Check out https://github.com/newren/git-filter-repo/
comment by sixstringtheory · 2022-02-23 · in Everything you need to know about monorepos -
…[0]. It's recommended by the official manual as replacement for git-filter-branch [1]. [0] https://github.com/newren/git-filter-repo/ [1] https://git-scm.com/docs/git-filter-branch
comment by Kinrany · 2021-03-28 · in I Hate Git Submodules -
…to remove the entire file the token was in). [0] https://rtyley.github.io/bfg-repo-cleaner/ [1] https://github.com/newren/git-filter-repo
comment by danudey · 2021-03-24 · in The Python Package Index is now a GitHub secret scanning integrator -
▲ 60
Git filter-repo: much easier/faster alternative to filter-branchstory by dmart · 2020-10-04 · 9 comments
-
For 1), try using git-filter-repo ( https://github.com/newren/git-filter-repo ). This is the currently recommended alternative to previous tools like filter-branch, and it is much more user-friendly. `git filter-repo --analyze` will…
comment by dmart · 2020-10-04 · in Git Exercises -
…--name-callback 'return b"Name to use"' --email-callback 'return b"emailtouse@example.com"' [0]: https://github.com/newren/git-filter-repo
comment by aarchi · 2020-07-18 · in Bare metal Smalltalk-80 port to the Raspberry Pi -
Having done this migration, I recommend you look into filter-repo, https://github.com/newren/git-filter-repo I don't remember the specifics but the method used here didn't produce the results we were looking for when migrating long…
comment by dustinchilson · 2020-04-27 · in Monorepoize – Bash scripts for creating a monorepo out of smaller repos -
▲ 1
Git-filter-repo: a fast and flexible Git-filter-branch replacementstory by fanf2 · 2019-08-21 · 0 comments