[-] WimpyWoodchuck@feddit.org 13 points 10 hours ago

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.

WimpyWoodchuck

joined 1 month ago