Created
December 29, 2014 10:27
-
-
Save VinceMacBuche/6f2674df7772e0827064 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
set -e | |
BRANCHES='branches/rudder/2.10 branches/rudder/2.11 branches/rudder/3.0 master' | |
BRANCH='' | |
for i in $BRANCHES; do | |
git checkout $i | |
git pull NRM | |
done | |
for i in $BRANCHES; do | |
if [ "z$BRANCH" != "z" ]; then | |
git checkout $i | |
git merge $BRANCH | |
fi | |
BRANCH=$i | |
done | |
for i in $BRANCHES; do | |
git checkout $i | |
git push NRM $i; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment