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
I came across the same issue of this question...
Wondering myself about it, I did a small alias function inside my .bashrc file:
.bashrc
gitPullAll() { for branch in `git branch | sed -E 's/^\*/ /' | awk '{print $1}'`; do git checkout $branch git pull -p printf "\n" done echo "Done" }
Worked for me (: