Git 好用命令收集

159 阅读1分钟
  • 拉取所有远程分支

git clone xxx
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all