{"id":15003482,"url":"https://github.com/pcnate/npm-nomaster-commits","last_synced_at":"2026-01-05T05:33:03.929Z","repository":{"id":33600499,"uuid":"159862413","full_name":"pcnate/npm-nomaster-commits","owner":"pcnate","description":"simple dev module to add a pre-commit hook to block commits to master","archived":false,"fork":false,"pushed_at":"2023-10-04T15:00:46.000Z","size":328,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T08:02:15.547Z","etag":null,"topics":["commit","git"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/pcnate.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":"2018-11-30T18:19:22.000Z","updated_at":"2023-10-04T15:00:11.000Z","dependencies_parsed_at":"2024-10-12T07:41:01.352Z","dependency_job_id":null,"html_url":"https://github.com/pcnate/npm-nomaster-commits","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fnpm-nomaster-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fnpm-nomaster-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fnpm-nomaster-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fnpm-nomaster-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcnate","download_url":"https://codeload.github.com/pcnate/npm-nomaster-commits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238955668,"owners_count":19558452,"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":["commit","git"],"created_at":"2024-09-24T18:58:38.908Z","updated_at":"2025-10-30T11:30:26.111Z","avatar_url":"https://github.com/pcnate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-nomaster-commits\n\n## Description:\n\nNPM package that adds a pre-commit hook that blocks commits to the master/main/truck branches of a git repository. May be optionally installed globally to provide commands to install the pre-commit hook into the local git repository.\n\n\u003e Security notice: this will create a shell script that gets executed by git on every commit. Be sure to verify the code does what I say it does if you have any concerns about security.\n\n## Installation\n\nInstall as a dependency of an NPM package with the following command. This will install the package and activate the pre-commit hook.\n\n`npm install --save-dev npm-nomaster-commits`\n\nInstall globally as a system command with the following command. This will allow `nomaster` and `nomain` to be executable commands that allow you to install or uninstall the pre-commit hook once in the current working directory if it contains a .git folder.\n\n`npm install --global npm-nomaster-commits`\n\nThen from a valid git repository run the following:\n\n`nomaster --install`\n\n`nomain --install`\n\n## Usage:\n\n * nomaster [options]\n * nomain [options]\n\nExamples:\n * nomaster --install --directory /home/yourUser/github/yourRepository\n * nomaster --install --directory c:\\github\\yourRepository\n * nomaster --status\n\n## Options:\n| option | description |\n|--|--|\n| help | Shows this help file. This is the default if no other option is provided. |\n| install | Install the pre-commit hook into the current .git folder of the current repository |\n| uninstall | Remove the matching pre-commit hook from the current .git folder of the current repository |\n| status | Shows the current installation status of the current working  directory. It also will show if the current working directory is a valid git repository. |\n| verbose | Increase the verbosity of logging for debug purposes |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcnate%2Fnpm-nomaster-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcnate%2Fnpm-nomaster-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcnate%2Fnpm-nomaster-commits/lists"}