Skip to content

Instantly share code, notes, and snippets.

View hcurotta's full-sized avatar
🐨
.

Harry Curotta hcurotta

🐨
.
View GitHub Profile
@hcurotta
hcurotta / post-merge
Created October 17, 2014 14:34
Post Merge git hook to trigger codeship deployment when using BitBucket
#!/bin/bash
branch_name=$(git symbolic-ref --short HEAD)
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ]
then
git commit --allow-empty -m 'empty commit to trigger deployment'
fi