850
submitted 1 day ago* (last edited 1 day ago) by Maven@lemmy.zip to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] sabreW4K3@lazysoci.al 22 points 1 day ago

Doing a git clean is a dick move.

[-] BatmanAoD@programming.dev 11 points 1 day ago

The user clicked an option to "discard" all changes. They then got a very clear pop-up saying that this is destructive and cannot be undone (there's a screenshot in the thread).

[-] Peer@discuss.tchncs.de 25 points 1 day ago

I very much understand how one can think this would revert any changes done to files under version control but not delete the ones that are not. I believe this dialog has since been updated to explicitly state that fact.

[-] BatmanAoD@programming.dev 10 points 1 day ago

Yes, the dialog was changed, as part of this linked issue (and maybe again after that; this whole incident is very old). After reading some of the comments on that issue, I agree with the reasoning with some of the commenters that it would be less surprising for that menu option to behave like git reset --hard and not delete tracked files.

[-] astrsk@fedia.io 6 points 1 day ago

Yeah, real developers do git clean -dxf.

this post was submitted on 20 Nov 2024
850 points (97.4% liked)

Programmer Humor

19622 readers
1993 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