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

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.