this post was submitted on 23 Jul 2024
443 points (96.4% liked)

Programmer Humor

19166 readers
575 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
443
rm -rf / (programming.dev)
submitted 1 month ago* (last edited 1 month ago) by JPDev to c/programmer_humor
 
you are viewing a single comment's thread
view the rest of the comments
[–] iammike 4 points 1 month 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