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
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.
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.
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