Skip to content

Instantly share code, notes, and snippets.

@charles-hollenbeck
Created August 19, 2013 10:05
Show Gist options
  • Save charles-hollenbeck/6267623 to your computer and use it in GitHub Desktop.
Save charles-hollenbeck/6267623 to your computer and use it in GitHub Desktop.
Simple script to push to muliple git repos at once
#!/bin/bash
#Simple script to push to muliple git repos at once
#Usage: gitpush remote1 remote2 remote3
for var in "$@"
do
git push -u "$var" master
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment