Skip to content

Instantly share code, notes, and snippets.

@VinceMacBuche
Created December 29, 2014 10:27
Show Gist options
  • Save VinceMacBuche/6f2674df7772e0827064 to your computer and use it in GitHub Desktop.
Save VinceMacBuche/6f2674df7772e0827064 to your computer and use it in GitHub Desktop.
#!/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