Last active
July 15, 2016 15:28
-
-
Save dkavanagh/5161125 to your computer and use it in GitHub Desktop.
pushtoremote.sh - I revised this to work with the current branch because I never ended up passing in anything other than that.
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
branch=`git rev-parse --abbrev-ref HEAD` | |
if [ "$branch" = "master" ] || [ "$branch" = "maint-4.1" ] | |
then | |
echo "Pushing to "$branch" is no bueno." | |
exit -1 | |
fi | |
echo "pushing to "$branch | |
git submodule foreach git push origin $branch | |
git push origin $branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment