How git clone actually works

后端 未结 5 1314
暗喜
暗喜 2021-01-31 06:04

I have a repository on Github with 2 branches: master and develop.

When I clone the repository and run $ git branch it shows only

5条回答
  •  借酒劲吻你
    2021-01-31 06:10

    git clone fetches all branches of the repository by default. If you want to check out all branches, you need to clone a bare copy of the repository, unset the bare flag and reset it. Let me know if you have further issues.

提交回复
热议问题