Tracking work hours through git
I recently finished a project that involved me working variable hours in one sitting.
For example, I might start at 8AM and go till 2:30 PM. I would make a commit as soon as I started, and commit right before I left.
I want to approximate how many hours I have worked on this project.
I had planned on looking through my commits and figuring this out manually, but the git web interface just gives a vague timestamp such as "authored 2 months ago".
Does anybody know of any third party app that counts hours through git?
Or hopefully provide any pointers on what to try next?
Thanks!
I have created git-hours tool to estimate the hours spent on a git repository as you described.
The algorithm to calculate the hours is quite simple and dumb. See the documentation to get an idea how it works: https://github.com/kimmobrunfeldt/git-hours#how-it-works
For example, estimating hours spend on Bootstrap:
➜ bootstrap git:(master) git hours
{
...
"total": {
"hours": 9959,
"commits": 11470
}
}
Please note that the information is not accurate enough to be used in billing. It gives a rough idea of the project's size.
npm install git-hours -g
然后运行:
cd /to/your/local/repository
git hours ; # total of all time
git hours --since yesterday # since yesterday
You can use Assembla Space with (at least) Git repository (Assembla's or Github's or Bitbucket's) and Time Tool (and specially formatted Git's commit message) and get integrated by custom period time-reports from Time Tab.
Anyway, time tracking for every single commit is your own task - nobody knows, how much you really work between two consecutive commits
链接地址: http://www.djcxy.com/p/73680.html上一篇: Google将自动填充功能置于Windows Mobile IE浏览器中不起作用
下一篇: 通过git跟踪工作时间