Skip to content

Instantly share code, notes, and snippets.

View segadora's full-sized avatar

Christoffer Nielsen segadora

  • Andel Holding A/S
  • Denmark
View GitHub Profile
@segadora
segadora / pre-commit
Last active August 29, 2015 14:18
Prevent commit on master branch
#!/usr/bin/env bash
# Based on https://gist.github.com/Simbul/1781656
# This pre-commit hook will prevent any commit to forbidden branch
# (by default, "master").
# Put this file in your local repo, in the .git/hooks folder
# and make sure it is executable.
# The name of the file *must* be "pre-commit" for Git to pick it up.