Push multiple git remotes
Push to multiple remotes with git mpush origin,github master
.
Save as git-mpush
somewhere in your PATH
:
#!/bin/bash
IFS=',' read -ra REMOTES <<< "$1"
shift
for REMOTE in "${REMOTES[@]}"; do
echo git push $REMOTE $*
git push $REMOTE $*
done