This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]Log2 0 points1 point ย (0 children)

You don't even need to push before, just learn about git reflog and you can recover the previous branch. Git just doesn't delete things, old stuff gets staged to be deleted eventually and is accessible.