Julia Evans on Nostr: in git, what ways are there to "lose" a commit in a way that you CAN'T recover using ...
in git, what ways are there to "lose" a commit in a way that you CAN'T recover using the reflog (so that you need to iterate over every single commit in the repository if you want to find it?
The only ways I know are:
* using `git stash drop` or `git stash pop` to drop a stashed commit
* waiting 90+ days to try to recover the commit (so that it expires from the reflog)
Published at
2024-05-16 18:38:35Event JSON
{
"id": "0e92b4c57b8bad7e1cfe000d3010c5a69675f0db316cd1b7a38101cb98b22a4d",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1715884715,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/112452220738383777",
"activitypub"
]
],
"content": "in git, what ways are there to \"lose\" a commit in a way that you CAN'T recover using the reflog (so that you need to iterate over every single commit in the repository if you want to find it?\n\nThe only ways I know are:\n\n* using `git stash drop` or `git stash pop` to drop a stashed commit\n* waiting 90+ days to try to recover the commit (so that it expires from the reflog)",
"sig": "32f3f0d00765c13af5bfd81855a43b90657aed9e78923853d48f5f2bbebd6f7a361e137852ea914fd3dd35212e2ad2bbb75ed93e18dc623dd1fef821dd3652e8"
}