Fun fact: even git push -f doesn't lose data, either. The server keeps a reflog just like your local repo does. You can git reset --hard master 'master@{1}' on the server to undo a force push.

@sir huh! I didn't know that. assumes you have shell access on the server, of course

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!