TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Git command for creating snapshot commits on a not checked-out branch

2 点作者 meribold将近 3 年前

2 条评论

theamk将近 3 年前
I recommend &quot;commit early, commit often&quot; approach instead -- and rebase&#x2F;squash before making a PR.<p>For those temp commits, I found out that even bad commit messages which would not be acceptable in any serious codebase (&quot;reafctored foowidegt&quot;, &quot;starts up but crashes in 3 sec&quot;, &quot;cannot find unistd.h&quot;) are still very useful. And of course those commit messages are great placeholders for random notes (&quot;TODO need to add unit test for zero input&quot;, &quot;still need to hook up to main class&quot;)
评论 #31819693 未加载
meribold将近 3 年前
This is basically a poor man&#x27;s Dura (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29784238" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29784238</a>) in 20 lines of Bash that is run manually instead of using a background process and a timer.