How do I clone a single branch in Git?

后端 未结 21 2858
再見小時候
再見小時候 2020-11-22 00:09

I have a local Git repository called \'skeleton\' that I use for storing project skeletons. It has a few branches, for different kinds of projects:

casey@aga         


        
21条回答
  •  野的像风
    2020-11-22 00:36

    Similar to what @nosaiba-darwish said here: here

    This is what we usually do in our company:

    git clone -b  --single-branch  folder_to_clone_locally
    

提交回复
热议问题