Hacker News new | ask | show | jobs
by dundarious 14 days ago
I know, I use switch and restore now (for the most part). I'm explaining how knowing the internals does help understand the 2 use-cases being originally implemented via 1 command, i.e., checkout. The post I was responding to said the checkout case ran counter to the idea that knowing the internals helps use the commands, when it's actually a pretty standard case where it does help.
1 comments

Everyone learns git checkout <file> real quick after you lose that uncommitted change. I learned the hard way.