this post was submitted on 12 Apr 2026
369 points (99.5% liked)
Programmer Humor
30917 readers
868 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
rm-ing.gitisn't gonna work cuz you'll have to re-add the remotes.Oh good point 🤦
So maybe instead, we can clear all local + remote branches and tags, create a blank branch, delete main, rename the blank branch to main, then delete .git
Although the OP says that we can merge anything, and we might not have access to mess with branches
Or just
git push origin --force blank:mainLive your best life.
git pullblindly.I'm not sure about the git history wipe, I can't test it myself right now
Just test it on production, you could do it right now
Goodbye
fedecan.ca