Hacker GitHub

← All repos

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

Mentions per year 27 mentions · busiest year 2022 (6)
20082026
  1. …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...
  2. …use tools like git-filter-repo. - https://docs.github.com/en/authentication/keeping-your-accou... - https://github.com/newren/git-filter-repo
  3. ▲ 62
    Quickly rewrite Git repository history
    story by modinfo · 2026-07-21 · 13 comments
  4. …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
  5. ▲ 2
    Git-Filter-Repo
    story by rglover · 2025-08-20 · 0 comments
  6. …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…
  7. ▲ 2
    Git-filter-repo: Quickly rewrite Git repository history
    story by ingve · 2024-12-02 · 0 comments
  8. 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
  9. filter-repo is the recommended way these days: https://github.com/newren/git-filter-repo
  10. 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)
  11. …and its --commit-callback flag , which lets you modify commit objects with a custom Python snippet. https://github.com/newren/git-filter-repo
  12. 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:…
  13. …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…
  14. …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
  15. …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…
  16. 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.
  17. 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)
  18. 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.
  19. …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
  20. Check out https://github.com/newren/git-filter-repo/
    comment by sixstringtheory · 2022-02-23 · in Everything you need to know about monorepos
  21. …[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
  22. …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
  23. ▲ 60
    Git filter-repo: much easier/faster alternative to filter-branch
    story by dmart · 2020-10-04 · 9 comments
  24. 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
  25. …--name-callback 'return b"Name to use"' --email-callback 'return b"emailtouse@example.com"' [0]: https://github.com/newren/git-filter-repo
  26. 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…
  27. ▲ 1
    Git-filter-repo: a fast and flexible Git-filter-branch replacement
    story by fanf2 · 2019-08-21 · 0 comments