#!/bin/sh # Not sure how reliable this is; depends on 'git branch' output. for b in `git branch | cut -b 3-`; do git checkout ${b} git pull done