1 2 3 4 5 6 7 8
#!/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