48 ms·
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.
by fragmede 4y ago
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.
- alexrtan 4y agoIf 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.
- fragmede 4y agoIf 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/95d1613a9fce4bcfc82d8ba48eb3224388f0b7e1...master 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.