this post was submitted on 20 Nov 2024
929 points (97.6% liked)

Programmer Humor

19817 readers
163 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 2 years ago
MODERATORS
929
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/programmer_humor
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 month ago (1 children)

If the "changes" are all your files, discarding them for me means basically delete my files, you know, the ones you are trying to add.

[โ€“] [email protected] 17 points 1 month ago* (last edited 1 month ago)

At the same time, OP seems a layman, and might be coming from things like Microsoft Word, where "Discard all changes" basically means "revert to last save".

EDIT: After reading the related issues, OP may have also thought that "discard changes" was to uninitialise the repository, as opposed to wiping untracked files.