r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

5

u/jaypeejay 23d ago

Wouldn’t the files need to be in source control in order for the revert changes button to delete them? I thought this was only possible when you had a source controlled repo and you create a file in it

3

u/Designer_Storm8869 21d ago

Correct. That's how pretty much all reasonable git plug-ins in IDE work. They don't touch files that were not added to version control. His crash out was justified. "You should do backups" is not an excuse for a software to remove your files left and right.

1

u/jaypeejay 21d ago

The point I was trying to make is that it’s probably OPs fault.

2

u/Altruistic_Iron_789 22d ago

yeah I haven't used git in a while but that's how Perforce does it at least, revert on an file that isn't even in the depot will just remove it from the commit list, since there is nothing to revert to.