Created
March 19, 2018 11:31
-
-
Save ferdef/0a6cfcb3c132f10b467790c9cd5e5cd9 to your computer and use it in GitHub Desktop.
We use a branch for deploying current branches to a sandbox environment. This script automates it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment