4 ms·
Using the command specifically designed to permanently discard work seems ”very hard” to me.
by nemetroid 4y ago
Using 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.