News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part I) by lisper on Wednesday June 29, 2022 @03:57PM (#31924978)
> It can do that, if you explicitly run it with the options to checkout a specific path.

Fair point. I've update my comment to clarify.

> But why would you do that if it's not what you want?

Because sometimes it is what you want. The point is, if you happen to do it when it's not what you want, you're hosed. So it is simply not true that "It is very hard to permanently lose work." It is, in fact, quite easy under certain not-uncommon circumstances.

Re:Things I wish everyone knew about Git (Part I) by atq2119 on Wednesday June 29, 2022 @04:18PM (#31925212)
Fair point. There probably should be standard advice along the lines of "if in doubt, make a 'wip' commit before you do anything". That's good advice even beyond using git itself.