git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
// 远程分支覆盖本地所有分支
git pull --all
for branch in `git branch -a | grep remotes | grep -v HEAD`; do git checkout -f -t -B ${branch##remotes/origin/} $branch; done;
git checkout master