Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darwintantuco/git-protecc
Protection from unintentional push to protected git branches
https://github.com/darwintantuco/git-protecc
git git-hooks hooks
Last synced: 18 days ago
JSON representation
Protection from unintentional push to protected git branches
- Host: GitHub
- URL: https://github.com/darwintantuco/git-protecc
- Owner: darwintantuco
- License: mit
- Created: 2018-03-12T10:55:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T18:27:00.000Z (almost 4 years ago)
- Last Synced: 2024-10-09T19:02:18.771Z (30 days ago)
- Topics: git, git-hooks, hooks
- Language: Shell
- Homepage:
- Size: 280 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-protecc
![Node.js CI](https://github.com/darwintantuco/git-protecc/workflows/Node.js%20CI/badge.svg)
Custom `pre-push` git hooks to prompt user when pushing to protected branches
`git config` is used to set protected branches
Backup existing `pre-push` hook
![sample](demo.gif)
## Getting Started
### Requirements
npm >= 5.2.0
bash
## Usage
#### List all protected branches
```bash
$ npx git-protecc branch
```#### Add branch to protected branches
```bash
$ npx git-protecc branch add
```#### Remove branch from protected branches
```bash
$ npx git-protecc branch remove
```## License
MIT