How to clone all remote branches in Git?

后端 未结 30 2751
情话喂你
情话喂你 2020-11-22 01:08

I have a master and a development branch, both pushed to GitHub. I\'ve cloned, pulled, and fetched, but I re

30条回答
  •  庸人自扰
    2020-11-22 01:54

    As of early 2017, the answer in this comment works:

    git fetch brings the branch down for you. While this doesn't pull all branches at once, you can singularly execute this per-branch.

提交回复
热议问题