Skip to content

Instantly share code, notes, and snippets.

@ferdef
ferdef / to_playground.sh
Created March 19, 2018 11:31
We use a branch for deploying current branches to a sandbox environment. This script automates it
#!/bin/bash
current=`git rev-parse --abbrev-ref HEAD`
deploy_branch=playground
git fetch --prune
git checkout $deploy_branch
git rebase origin/$deploy_branch
git merge origin/$current --no-edit
git push origin $deplot_branch
git checkout $current