Skip to content

Instantly share code, notes, and snippets.

View terriann's full-sized avatar
🦄
Making things happen

Terri Ann Swallow terriann

🦄
Making things happen
View GitHub Profile
@vlucas
vlucas / pre-push.sh
Created July 22, 2014 16:12
Prevent Pushes Directly to Master
#!/bin/bash
# @link https://gist.github.com/mattscilipoti/8424018
#
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...