Well, if you have some specific pattern for your TODOs you can simply grep
them.
grep -R TODO . > todo.txt
The next step is to decide when you want this file to be updated. If you want this to happen before push, you'll need at least git
1.8.2, since pre-push
hook was added in this release.