I often have at least 3 remote branches: master, staging and production. I have 3 local branches that track those remote branches.
Updating all my local branches is
It's not so hard to automate:
#!/bin/sh # Usage: fetchall.sh branch ... set -x git fetch --all for branch in "$@"; do git checkout "$branch" || exit 1 git rebase "origin/$branch" || exit 1 done