Skip to content

Instantly share code, notes, and snippets.

@ZaneA
Last active December 20, 2015 01:09
Show Gist options
  • Save ZaneA/6047538 to your computer and use it in GitHub Desktop.
Save ZaneA/6047538 to your computer and use it in GitHub Desktop.
Usage: `git mpush origin,github master`
#!/bin/bash
IFS=',' read -ra REMOTES <<< "$1"
shift
for REMOTE in "${REMOTES[@]}"; do
echo git push $REMOTE $*
git push $REMOTE $*
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment