{"id":15577134,"url":"https://github.com/darwintantuco/git-protecc","last_synced_at":"2025-04-24T01:07:51.036Z","repository":{"id":116141496,"uuid":"124875234","full_name":"darwintantuco/git-protecc","owner":"darwintantuco","description":"Protection from unintentional push to protected git branches","archived":false,"fork":false,"pushed_at":"2021-01-29T18:27:00.000Z","size":287,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T01:07:45.365Z","etag":null,"topics":["git","git-hooks","hooks"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/darwintantuco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-03-12T10:55:21.000Z","updated_at":"2023-07-14T20:36:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"636de2bf-da2c-48a9-8ea6-fa853d273855","html_url":"https://github.com/darwintantuco/git-protecc","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":0.1384615384615384,"last_synced_commit":"2578acc136bd96b429dbaade7965994e07316c71"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwintantuco%2Fgit-protecc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwintantuco%2Fgit-protecc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwintantuco%2Fgit-protecc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwintantuco%2Fgit-protecc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darwintantuco","download_url":"https://codeload.github.com/darwintantuco/git-protecc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540941,"owners_count":21447427,"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":["git","git-hooks","hooks"],"created_at":"2024-10-02T19:00:48.815Z","updated_at":"2025-04-24T01:07:51.001Z","avatar_url":"https://github.com/darwintantuco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-protecc\n\n![Node.js CI](https://github.com/darwintantuco/git-protecc/workflows/Node.js%20CI/badge.svg)\n\nCustom `pre-push` git hooks to prompt user when pushing to protected branches\n\n`git config` is used to set protected branches\n\nBackup existing `pre-push` hook\n\n![sample](demo.gif)\n\n## Getting Started\n\n### Requirements\n\nnpm \u003e= 5.2.0\n\nbash\n\n## Usage\n\n#### List all protected branches\n\n```bash\n$ npx git-protecc branch\n```\n\n#### Add branch to protected branches\n\n```bash\n$ npx git-protecc branch add \u003cbranch\u003e\n```\n\n#### Remove branch from protected branches\n\n```bash\n$ npx git-protecc branch remove \u003cbranch\u003e\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarwintantuco%2Fgit-protecc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarwintantuco%2Fgit-protecc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarwintantuco%2Fgit-protecc/lists"}