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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Keep TODOs in git

49 点作者 beghbali大约 12 年前

11 条评论

evincarofautumn大约 12 年前
This is a bad idea. I can come up with a TODO at any time; I especially <i>do</i> when I’m in the middle of something and have staged local changes. In that case, this:<p><pre><code> git commit --allow-empty -m "TODO: $*" </code></pre> Will do the wrong thing—committing my staged changes even if I didn’t want that, and giving them a wrong commit message. If the change is small, I might not notice. <i>If</i> I were going to involve Git in my task tracking, I would much prefer something like this:<p><pre><code> todo() { touch TODO printf "%s\n%s\n\n" "$(date)" "$*" | cat - TODO &#62; TODO.tmp mv TODO.tmp TODO $(git config core.editor) TODO }</code></pre>
评论 #5522188 未加载
eeperson大约 12 年前
Why not just use 'git notes'? This seems like exactly the sort of use case that feature is for.
评论 #5523333 未加载
kamaal大约 12 年前
Nice,<p>But I've checked nearly everything thing out. Online kanban boards, Trello, Asana, Org-Mode you name it...<p>Its extremely hard to beat the flexibility of a diary and pencil/pen. You can doodle, scratch, draw, record, take notes, maintain time, review history, write a lesson, work out problems... The list is endless... You can do all this in a easy extremely distraction less tool. And to be frank maintaining a diary gives me a great deal of discipline in fighting procrastination. Diaries also are great progress indicators.<p>Most successful people I know maintain diaries. Diaries and Pens are here to stay.
emmelaich大约 12 年前
For a more fancy mature solution, consider <a href="http://bugseverywhere.org/" rel="nofollow">http://bugseverywhere.org/</a><p>Git (and dvcs generally) is a nice hammer to hit all sorts of things that look like storage/content/versioning nails.
评论 #5524136 未加载
ultimoo大约 12 年前
clever code: keeping an empty todo commit in the repo tree.<p>clear code: keeping a textual todo or org mode file committed in the repo.<p>While this is another fun and a clever trick that can be done with git and it delights the geek within me, I wouldn't do this while collaborating on production code with a team.
emillon大约 12 年前
For that purpose I use ticgit which creates an unrelated branch in a git repository to store data. There's even a web client if you want to go fancy.<p><a href="https://github.com/schacon/ticgit" rel="nofollow">https://github.com/schacon/ticgit</a>
评论 #5523322 未加载
评论 #5523608 未加载
micahmcfarland大约 12 年前
Wow, nice tip. Seems like combining this with Sublime Todo (<a href="https://github.com/robcowie/SublimeTODO" rel="nofollow">https://github.com/robcowie/SublimeTODO</a>) would make for a really good setup.
baghali大约 12 年前
The best TODO tool for me is pen &#38; a paper. Silence is also the best music I have found to listen to while working :)
ricardobeat大约 12 年前
Anyone using <a href="http://todotxt.com/" rel="nofollow">http://todotxt.com/</a>?
general_failure大约 12 年前
I pretty much always have a file called TODO in version control.
评论 #5523216 未加载
EugeneOZ大约 12 年前
Bad advice. Keep tasks in issue tracker.