Skip to content

Instantly share code, notes, and snippets.

View fob2257's full-sized avatar
🏠
Working from home

Saul Meneses fob2257

🏠
Working from home
View GitHub Profile
#!/bin/bash
target_branch="master"
working_tree="/home/deploy/icdt-production"
git_tree="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then