Skip to content

darwintantuco/git-protecc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-protecc

Node.js CI

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

Getting Started

Requirements

npm >= 5.2.0

bash

Usage

List all protected branches

$ npx git-protecc branch

Add branch to protected branches

$ npx git-protecc branch add <branch>

Remove branch from protected branches

$ npx git-protecc branch remove <branch>

License

MIT

About

Protection from unintentional push to protected git branches

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages