#!/bin/bash if [ $1 == "" ]; then echo usage: mkgit-client [repository name] fi git remote add origin git@hairydiode.xyz:$1 git push --set-upstream origin master BRANCHES=$(git branch | sed "s/*//g") for BRANCH in ${BRANCHES[@]}; do git branch $BRANCH --set-upstream-to origin/$BRANCH done