3 ms·
I don’t see anybody here claiming that’s git’s fault. But it is an argument supporting the claim being discussed: that the statement “It is very hard to perman
by Someone 4y ago
I don’t see anybody here claiming that’s git’s fault.
But it is an argument supporting the claim being discussed: that the statement “It is very hard to permanently lose work” is not quite true.
- nemetroid 4y agoUsing the command specifically designed to permanently discard work seems ”very hard” to me.
- Someone 4y agoBut it’s inconsistent in that. git checkout existing_branch complains with “error: Your local changes to the following files would be overwritten by checkout”* and abort, git checkout existing_directory overwrites files. That’s what makes it easy to make that mistake, and lose data. It’s safe to use until it suddenly isn’t.
- nemetroid 4y agoI just don't understand why someone would do git checkout existing_directory if they don't want to overwrite files, since that is all the command does.