{"id":21946347,"url":"https://github.com/shaleh/setup-git-repo","last_synced_at":"2026-05-01T02:30:55.260Z","repository":{"id":147633633,"uuid":"65934750","full_name":"shaleh/setup-git-repo","owner":"shaleh","description":"Scripts to configure a git repo with user name and password","archived":false,"fork":false,"pushed_at":"2016-08-17T19:12:51.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T05:04:38.952Z","etag":null,"topics":["automation","git","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaleh.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-17T19:08:47.000Z","updated_at":"2017-10-28T23:06:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c1a0faf-3a71-467b-96c9-7ab00eb3c145","html_url":"https://github.com/shaleh/setup-git-repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shaleh/setup-git-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaleh%2Fsetup-git-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaleh%2Fsetup-git-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaleh%2Fsetup-git-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaleh%2Fsetup-git-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaleh","download_url":"https://codeload.github.com/shaleh/setup-git-repo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaleh%2Fsetup-git-repo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["automation","git","hooks"],"created_at":"2024-11-29T04:30:53.497Z","updated_at":"2026-05-01T02:30:55.243Z","avatar_url":"https://github.com/shaleh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple script to setup a git repo. It looks for `~/.config/git/work-settings`\nor `~/.config/git/personal-settings` based on the value of `git remote`'s `origin`.\n\n`git-validate-my-config` should be placed in your path before the real git-*\ncommands. Install it like so:\n\n    install -m 755 git-validate-my-config ~/bin\n    cd ~/bin\n    ln -s git-validate-my-config git-review\n\nI set up my `~/.gitconfig` like so:\n\n    [init]\n        templatedir = ~/.git-templates\n\nAnd in there I have a `hooks/pre-commit` that is simply:\n\n    #!/bin/sh\n    git validate-my-config || setup-git\n\nNow whenever I clone a repo the hook is in place and whenever I commit the hook ensures\nthe configuration is correct and current. `git init` run on a repo that was cloned previously\nwill safely re-apply the templates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaleh%2Fsetup-git-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaleh%2Fsetup-git-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaleh%2Fsetup-git-repo/lists"}