this post was submitted on 20 Nov 2024
473 points (100.0% liked)

Programmer Humor

421 readers
42 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
you are viewing a single comment's thread
view the rest of the comments
[–] Michal@programming.dev 27 points 1 day ago (2 children)

In the context of version control it does. Discarding a change that creates a file means deleting the file.

[–] JackbyDev@programming.dev 2 points 17 hours ago

"Discard" is not a git operation.

[–] Omega_Jimes@lemmy.ca 3 points 1 day ago (1 children)

Ok fair enough, but I'm under the impression these files existed before the source control was implemented.

I guess it's all up to how the program handles existing files.

[–] FiskFisk33@startrek.website 4 points 1 day ago

I guess the newly created git repository was empty, and all the files that was present in the folder represented "changes"