437
rm -rf / (programming.dev)
submitted 3 months ago* (last edited 3 months ago) by JPDev@programming.dev to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] hperrin@lemmy.world 14 points 3 months ago

What? Why would you need to do this? Is someone fucking with the .git directory?

[-] Johanno@feddit.org 3 points 3 months ago

Gradle!

Fucking gradle. I do config stuff, rerun gradle error here, I fix the error rerun gradle: sth. Violation error.

Ok intellij invalidate chaches and restart.... Still same error.

Fine I'll do it again

git add. 
git commit -m "stuff"
git push

rm -rf repo
git clone repo
[-] iammike@programming.dev 4 points 3 months ago

You can probably use something like

git clean -xdf

To get rid of all the artifacts not tracked by git, in this case it's virtually the same as deleting the repo and re-cloning it.

NOTE: Make sure everyhing is staged, otherwise that data is gone

load more comments (8 replies)
this post was submitted on 23 Jul 2024
437 points (96.4% liked)

Programmer Humor

19564 readers
513 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 1 year ago
MODERATORS