logoalt Hacker News

xp84yesterday at 3:57 PM1 replyview on HN

Yes, for instance it could be useful if someone’s been accidentally committing with a bogus email address. Or if you’re cleaning up some sort of mess and would like to recreate an accurate history.

Obviously as with any “force push” situation, the usual caveats apply if this is on a branch others have checked out, but if the mess is big enough, it is sometimes worth it to send everyone a script to reset or just to have people delete and re-check-out.


Replies

schainksyesterday at 4:12 PM

If someone's been committing with a bogus email address and they're still working on the project, shouldn't they clean up their own commits?

show 2 replies