{"channel":"tech","content":"https://news.ycombinator.com/item?id=42649858\r\nLINKS TO\r\nhttps://mirawelner.com/posts/checkout.html\r\n\r\nThe top HN comment: <<< `git switch` and `git restore` are better alternatives to the `git checkout` command, as they have a lower cognitive overhead and fewer footguns to avoid. Although these commands are marked in the documentation as experimental, they work extremely well in practice. Experimental in this sense means that these may gain or lose behavior over time, not that these commands are unstable for use. As a community, we should use `switch` and `restore` commands rather than `checkout` when documenting / teaching git so that newer users start with a greater ability to reason about how the commands affect their workflow. >>>","created_at":"2025-01-10T19:07:05.433067","id":89,"llm_annotations":{},"parent_id":null,"processed_content":"<p><a href=\"https://news.ycombinator.com/item?id=42649858\" target=\"_blank\" rel=\"noopener noreferrer\">https://news.ycombinator.com/item?id=42649858</a>\r</p>\n<p>LINKS TO\r</p>\n<p><a href=\"https://mirawelner.com/posts/checkout.html\" target=\"_blank\" rel=\"noopener noreferrer\">https://mirawelner.com/posts/checkout.html</a>\r</p>\n<p>The top HN comment: <div class=\"mlq\"><button type=\"button\" class=\"mlq-collapse\" aria-label=\"Toggle visibility\"><span class=\"mlq-collapse-icon\">\u2212</span></button><div class=\"mlq-content\"><p> `git switch` and `git restore` are better alternatives to the `git checkout` command, as they have a lower cognitive overhead and fewer footguns to avoid. Although these commands are marked in the documentation as experimental, they work extremely well in practice. Experimental in this sense means that these may gain or lose behavior over time, not that these commands are unstable for use. As a community, we should use `switch` and `restore` commands rather than `checkout` when documenting / teaching git so that newer users start with a greater ability to reason about how the commands affect their workflow. </p></div></div></p>","quotes":[],"subject":"checkout out"}
