Tech
I Ran git reset --hard in the Wrong Window
git reset --hard HEAD~3 β run in the wrong repository window, at 6:40pm, immediately followed by the specific kind of silence that happens when you realize what you just did before your brain finishes processing it. Three commits of uncommitted-adjacent work, gone from the working tree in under a second.
The first, most important fact: it's very likely still there
git reset --hard moves the branch pointer and resets the working tree, but Git doesn't actually delete commit obje...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to