#!/bin/sh for remote in $(git remote); do git fetch -v $remote git merge ${remote}/master done