{"id":39534967,"url":"https://github.com/mesuutt/git-mirror","last_synced_at":"2026-01-18T06:32:26.759Z","repository":{"id":65163489,"uuid":"581326359","full_name":"mesuutt/git-mirror","owner":"mesuutt","description":"Keep your git commit statistics","archived":false,"fork":false,"pushed_at":"2023-12-09T11:01:59.000Z","size":94,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T12:16:18.419Z","etag":null,"topics":["git","github"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mesuutt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-22T21:55:47.000Z","updated_at":"2023-06-25T09:39:46.000Z","dependencies_parsed_at":"2023-12-09T12:22:06.658Z","dependency_job_id":"ade59da3-98f5-4b9d-afdf-bbe65b6ddbc3","html_url":"https://github.com/mesuutt/git-mirror","commit_stats":null,"previous_names":["mesuutt/gitmirror"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mesuutt/git-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesuutt%2Fgit-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesuutt%2Fgit-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesuutt%2Fgit-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesuutt%2Fgit-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesuutt","download_url":"https://codeload.github.com/mesuutt/git-mirror/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesuutt%2Fgit-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["git","github"],"created_at":"2026-01-18T06:32:26.686Z","updated_at":"2026-01-18T06:32:26.753Z","avatar_url":"https://github.com/mesuutt.png","language":"Go","readme":"Keep your git statistics with post-commit hook.\n\n---\n\n#### Usage\n\n```shell\nUSAGE:\n   git-mirror [global options] command [command options] [arguments...]\n\nCOMMANDS:\n   install  install post-commit hook for adding stats automatically\n   add      add stats of latest commit\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --repo value       git repo directory path of the mirror repo (default: \"$HOME/.git-mirror\")\n   --whitelist value  comma seperated file extensions to create stats. eg: go,rs,sh,Makefile (default: all extensions)\n   --help, -h         show help (default: false)\n```\n\n#### Install\n- Grab a [binary](https://github.com/mesuutt/git-mirror/releases) or install via `go install github.com/mesuutt/git-mirror@latest`\n- Create a git repository at `~/.git-mirror`(Do not forget `git init`)\n- Copy [example config file](https://github.com/mesuutt/git-mirror/blob/main/example.config.toml) to your `~/.git-mirror` repo as `config.toml`. \n\n#### Usage\n\ngit-mirror works as git post-commit hook. \nSo after install it you need to add related hook to project repositories by `git-mirror install` in your repos.  \n\nWhen you add a new commit to your project, stats of the commit will be added to the mirror repository.\n\n\n----\n\n#### Example generated stats repo content\n```shell\n$ tree\n.\n└── 2023\n    └── 01\n        ├── 01\n        │ └── log.go\n        └── 02\n            ├── log.go\n            ├── log.java\n            ├── log.md\n            ├── log.sql\n            └── log.yaml\n\n# Example generated file content after some commits\n$ cat 2023/01/02/log.go\nfmt.Println(\"02:42 24 insertion(s), 7 deletion(s)\")\nfmt.Println(\"03:39 83 insertion(s), 11 deletion(s)\")\n```\n\n#### TODO\n- [x] file type overwriting (`jsx=js`)\n- [x] content template with config\n- [ ] filename template with config\n- [ ] excluding file extensions\n- [ ] separating stat dirs like `personal/`, `work/`\n- [ ] custom vars in params and templates(`-vars=\"project=foo-api-gateway\"`)\n\n----\n\nLicense: MIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesuutt%2Fgit-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesuutt%2Fgit-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesuutt%2Fgit-mirror/lists"}