Re:Keeping a project bisectable
by fragmede on Friday August 05, 2022 @01:09AM
(#32351968)
Force push doesn't delete the commit from your computer so you should still be able to diff between the (disjoint) commits using the hash.
[ Parent
| on HN ]
If someone else has done the pull request, I review it on GitHub, then they rebase and force push the original commit wouldn’t be on my machine unless I had pulled it earlier correct? Which is something I never do.
If you don't have the ref locally but you have it open in a browser tab, you should† still be able to manually hack the URL to get a diff. Eg https://github.com/git/git/compare/95d1613a9fce4bcfc82d8ba48...
† My company's not on Github Enterprise and I don't have a repo and a second user handy to double check on public Github.