#!/bin/bash # Simply fetch all remotes in a git tree for i in `git remote`; do echo "Fetching remote: $i..." git fetch $i echo "...Done" done