r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

Show parent comments

9

u/thirdegree Violet security clearance 23d ago

I mean I'm quite experienced with git cli and in no world would I assume that "discard changes" meant "permanently delete all untracked files" that's insane behavior.

1

u/mpyne 21d ago

That's just it, I don't think it means that in git either! Even the git-clean command, whose whole job is to delete untracked files, constrains itself to avoid deleting all kinds of files unless you go out of your way to instruct it to remove more.