> git undo

what happened?

answer a couple questions. get the right command. stop panicking.

1 did you push it?
yeah, i pushed it
no, it's local
it's something else
or browse all problems →
🛡

before you panic

git almost never actually deletes anything. most mistakes are recoverable with git reflog. read this first.