#!/bin/bash if [ "$#" == 0 ]; then branch=$(git branch --show-current) else branch=$1 fi if [ "$branch" == "main" ]; then git remote | xargs -P 4 -I @ git push @ main else git remote | grep -v github | xargs -P 4 -I @_@ git push @_@ "$branch" fi