{"id":21807585,"url":"https://github.com/muety/gitcount","last_synced_at":"2025-04-13T20:52:22.930Z","repository":{"id":107453078,"uuid":"150687322","full_name":"muety/gitcount","owner":"muety","description":"A command-line tool to estimate the time spent on a git project, based on a very simple heuristic","archived":false,"fork":false,"pushed_at":"2019-01-02T07:45:13.000Z","size":12,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T11:21:10.244Z","etag":null,"topics":["devtools","git","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muety.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-09-28T04:49:31.000Z","updated_at":"2023-09-08T17:45:32.000Z","dependencies_parsed_at":"2023-07-13T22:00:34.222Z","dependency_job_id":null,"html_url":"https://github.com/muety/gitcount","commit_stats":null,"previous_names":["n1try/gitcount"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muety%2Fgitcount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muety%2Fgitcount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muety%2Fgitcount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muety%2Fgitcount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muety","download_url":"https://codeload.github.com/muety/gitcount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782283,"owners_count":21160716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devtools","git","golang"],"created_at":"2024-11-27T12:46:06.751Z","updated_at":"2025-04-13T20:52:22.912Z","avatar_url":"https://github.com/muety.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitcount\n\n[![Say thanks](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/n1try)\n\nA command-line tool to estimate the time spent on a git project, based on a very simple heuristic, inspired by [kimmobrunfeldt/git-hours](https://github.com/kimmobrunfeldt/git-hours).\n\n### Assumptions: \n* Commits with a time difference less than 2 hours are considered to be in one coding session\n* A multiple (x3) of the average time between commits in all sessions is added to the very first commit of every session\n\n## Example\n```sh\n$ gitcount -dir .\nProject root: /home/ferdinand/dev/mininote\nmail@ferdinand-muetsch.de: 13.06 hours\nexorcismo@gmail.com: 0.95 hours\nnoreply@github.com: 3.80 hours\nbtbtravis@gmail.com: 1.11 hours\nkiantrue@gmail.com: 0.95 hours\nfmuetsch@inovex.de: 0.00 hours\n---------\nTotal: 19.86 hours\n```\n\n## Example using Docker\n```sh\n$ docker run --rm -it -v `pwd`:/repo gitcount/gitcount:0.0.2\nProject root: /repo\nmail@ferdinand-muetsch.de: 1.73 hours\nnoreply@github.com: 0.65 hours\nu5.horie@gmail.com: 0.65 hours\n---------\nTotal: 3.03 hours\n```\n\n## Requirements\n* Go to be installed\n\n## How to use?\n1. `go get github.com/n1try/gitcount`\n2. `gitcount` or `gitcount -dir /some/project/path`\n\n## License\nMIT @ [Ferdinand Mütsch](https://muetsch.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuety%2Fgitcount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuety%2Fgitcount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuety%2Fgitcount/lists"}