{"id":22018157,"url":"https://github.com/rvflash/git-template","last_synced_at":"2026-04-16T08:34:35.831Z","repository":{"id":146848380,"uuid":"142755685","full_name":"rvflash/git-template","owner":"rvflash","description":"Easy global hooks with Git template directory.","archived":false,"fork":false,"pushed_at":"2019-03-14T23:08:32.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T09:35:14.417Z","etag":null,"topics":["git","golang","hooks"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/rvflash.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-29T11:35:05.000Z","updated_at":"2019-03-14T23:08:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"e26b6b68-eab3-4c87-be0d-c0a388df3cee","html_url":"https://github.com/rvflash/git-template","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rvflash/git-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fgit-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fgit-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fgit-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fgit-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvflash","download_url":"https://codeload.github.com/rvflash/git-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Fgit-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31877900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","golang","hooks"],"created_at":"2024-11-30T05:10:14.471Z","updated_at":"2026-04-16T08:34:35.826Z","avatar_url":"https://github.com/rvflash.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git template\n\nWith the option `--template` on the `git init` command, you can specify a directory from which templates will be used.\nTo do it, whenever you initialize a new repository, you can add a section in your `~/.gitconfig` file.\nMore information in the documentation of [Git template directory](https://git-scm.com/docs/git-init#_template_directory).\n\nThis project provides a directory to use as `git` template directory to simplify the workflow.\nUsefull to create global hooks!\n\n\u003e For now, only Golang code has a template directory with a `pre-commit` hook inside.\n\n\n## Installation\n\n```bash\n$ git clone https://github.com/rvflash/git-template.git ~/.git-template\n```\n\n## Quick start\n\nTo use it for all your future repositories, edit the `~/.gitconfig` and add this section:\n\n```bash\n[init]\n    templatedir = ~/.git-template/go\n```\n\nOr you can specify to use it on the fly when initializing a repository:\n\n```bash\n$ git init --template=\"~/.git-template/go\"\n```\n\n### Repository with Go code\n\nExposes a pre-commit hook that launches all the tests, `golint`, `goimports`, `gofmt` and `govet`.\nIf one of them failed, the commit is aborded.\n\nIn order to use more linters without degrading performance, if available, `golangci-lint` is used.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Fgit-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvflash%2Fgit-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Fgit-template/lists"}