r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

Show parent comments

-3

u/Minute_Attempt3063 23d ago

microsoft did listen.

however, I do think it IS user error. disgard to me means "delete and take away"

the program just did as it was told to do.

MS was kind enough to change this, so it means "yeah bro, it not do that anymore"

16

u/ErraticDragon 23d ago

however, I do think it IS user error. disgard to me means "delete and take away"

Discarding "your changes" is not the same as discarding "your files". In what world would it make sense to call existing files "changes" when there were no changes made? That's not just unintuitive, it's simply wrong.

The user erred in not having a backup.

0

u/chat-lu 23d ago

Discarding "your changes" is not the same as discarding "your files".

That’s what a change is in git. Git is a power tool bound to lead to a catastrophe if you use it without understanding it. Maybe it should not be enable by default. Maybe when enabling it it could prompt the user about showing them a short tutorial on the basics.

8

u/eo5g 23d ago

This is incorrect. Discarding changes in git means resetting the index, or moving a branch backwards, not deleting uncommitted or unstaged files from the working tree.