this post was submitted on 12 Apr 2026
1235 points (99.5% liked)

Programmer Humor

32048 readers
604 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

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] black_flag@lemmy.dbzer0.com 51 points 2 months ago (1 children)

rm-ing .git isn't gonna work cuz you'll have to re-add the remotes.

[โ€“] otter@lemmy.ca 10 points 2 months ago (1 children)

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

[โ€“] ozymandias117@lemmy.world 12 points 2 months ago (1 children)

Or just git push origin --force blank:main

[โ€“] fartographer@lemmy.world 2 points 2 months ago

Live your best life. git pull blindly.