wrozka / production-push

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pre-Push Hook

Have you ever pushed to a wrong remote by accident? Confirm all production pushes.

Install

wget https://raw.githubusercontent.com/wrozka/production-push/master/pre-push -O .git/hooks/pre-push
chmod +x .git/hooks/pre-push

Based on

https://dev.ghost.org/prevent-master-push/

About


Languages

Language:Shell 100.0%