Skip to content

GitHooksIO/githook-super-protected-branches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHook Super-Protected Branches

Rolls back any commits made directly to a branch of your choice, branching it and making a PR instead.

Caution: this GitHook is in its infancy, so there may be bugs in its implementation, meaning you could lose commit history or even entire files! Use at your own risk.

Requirements:

  • counterintuitively, your branch must NOT be marked as a Protected Branch, as the Super Protection mechanism requires the ability to force push to your branch. There is an open issue for making this GitHook work with Protected Branches, but this is unlikely to be fixed anytime soon.

Caveats:

Bug fixes and other contributions are welcome and actively encouraged.

About

Rolls back any commits made directly to a branch of your choice, branching it and making a PR instead.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published