Git 拉取所有分支内容

2022/02/09

Git 拉取所有分支内容

cd repo/

# if remote name is origin
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done

git fetch --all
git pull --all

Search

    Table of Contents