Git Time Metrics (GTM) is a tool to automatically track time spent reading and working on code that you store in a Git repository. By installing GTM and using supported plug-ins for your favorite editors, you can immediately realize better insight into how you are spending your time and on what files.
Tap
brew tap git-time-metric/gtm
Install
brew install gtm
Checkout the main GTM repository for more information.