I don't know if you're joking, but in case you're not: git reflog and git reset --hard HEAD@{n} is your friend. You can undo almost anything. Deleted commits and branches aren't really deleted. Remotely deleted branches can be pushed again.
Except for an (accidental) git restore/git reset. Those are permanent and can't be undone.
I don't know if you're joking, but in case you're not:
git reflog
andgit reset --hard HEAD@{n}
is your friend. You can undo almost anything. Deleted commits and branches aren't really deleted. Remotely deleted branches can be pushed again.Except for an (accidental)
git restore
/git reset
. Those are permanent and can't be undone.