2 ms·
Note: This will not work and cannot work on repos that use signed commits from multiple authors. Signed git history is immutable, and unsigned git history is a
by lrvick 2mo ago
Note: This will not work and cannot work on repos that use signed commits from multiple authors.
Signed git history is immutable, and unsigned git history is a supply chain attack vector.
That said I could see this being useful for single-author WIP branches doing cleanup before a PR
- YonathanTesfaye 2mo agoadded a warning for this in v0.2.0 signed commits now flag before the rewrite, it can know resign rebuilt commits with your key. https://github.com/TheRealYT/git-knife/releases/tag/v0.2.0 https://github.com/TheRealYT/git-knife/releases/tag/v0.2.0
- lrvick 2mo agoThat sure helps for personal use cases, and interesting! If you have more than one author in the history though that won't work, but I imagine where this is used the most is by an author cleaning up their own PRs. Appreciate being heard on this sort of thing! Will take a closer look.