2026-04-12 10:57 UTC
rm -rf *
git add -A
git commit -m "oops."
rm -rf .git
git init
git add .
git commit -m "bye."
git push origin main --force
Replies (2)
-
@otter@lemmy.ca 2026-04-12 10:58
I’m not sure about the git history wipe, I can’t test it myself right now
-
@black_flag@lemmy.dbzer0.com 2026-04-12 11:09
rm-ing .git isn’t gonna work cuz you’ll have to re-add the remotes.