by apinstein · 16y ago · 0 comments
I applaud the ingenuity but I think the author would be better off making a shortcut/alias to create a branch from the current head with some interesting name and commit message and commit the changes to the new branch, then switch back to the current one.
One accidental "git stash clear" and this dude's setup is wiped!
Seems workable, though by the time you're done working out the details, seems like you should just use a real issue tracker.
I think of my approach as the moral equivalent of post-it notes on the monitor, I wouldn't want to base any important system on it, but it's useful at times.
Still he should use an issue tracker, and then some branches :)
In fact a guy at our company hacked out a really cool git-pivotal integration that lets you create a branch to work on a specific story from the CLI https://github.com/ardell/Git-Pivotal I think it'd be trivial to write a simple CLI script to add a TODO to an issue tracker this way as well.