this post was submitted on 23 Jul 2024
430 points (96.5% liked)
Programmer Humor
19503 readers
1279 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What? Why would you need to do this? Is someone fucking with the .git directory?
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
You can probably use something like
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