Tracking work hours through git

bash, git, tracking

Solution

git-hours didn't work for me. So I have built a simple npm script called git-time.

Install

`npm install -g git-time`

Usage

`git-time <path>`

Where `<path>` should be a valid Git repo root path.

Problem

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!

Original source