Skip to content

Instantly share code, notes, and snippets.

@askobara
askobara / post-receive
Created April 1, 2015 17:46
Capistrano like post-receive git hook
#!/bin/bash
ROOT='/home/git/testing'
BRANCH='master'
MAX_RELEASES=5
RELEASE=$(date +%s)
while read oldrev newrev refname
do