mirror of
https://github.com/f/git-rewrite-commits.git
synced 2026-04-27 14:45:50 +03:00
[GH-ISSUE #13] Wrong commits rewritten #7
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-rewrite-commits#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @omarzina on GitHub (Nov 14, 2025).
Original GitHub issue: https://github.com/f/git-rewrite-commits/issues/13
First of all, thanks for this tool, helps a lot with side projects where things can get messed up really fast.
So, I was trying it out and it does everything fine, until it applies the changes to the wrong commits.
Here's the output from my terminal:
is this a bug?
Thanks again!
@f commented on GitHub (Nov 15, 2025):
You're running it with
--dry-runthat's why it doesn't change.@omarzina commented on GitHub (Nov 15, 2025):
The first time only, the second time I ran it without it. It's there in the logs I posted. It's changing the wrong commits.
@f commented on GitHub (Nov 15, 2025):
Can you retry with the new version I've just released?
@sebastienbarre commented on GitHub (Nov 16, 2025):
This is very real and will very much mess up your repo. I wrote about it in more details here, the wrong commits are being modified.
@f commented on GitHub (Nov 16, 2025):
YOU ARE RIGHT! I was calculating the commits wrong if you're using --max-commits. Now it's fixed with latest 0.6.92 version! (I've tested it!)
Thank you!
@f commented on GitHub (Nov 16, 2025):
Can you test and close if it worked?
@omarzina commented on GitHub (Nov 17, 2025):
Just were able to try it on version
0.7.3and it's still happening, exactly the way described above.