How do I clone a single branch in Git?

后端 未结 21 2413
再見小時候
再見小時候 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:28

    Can be done in 2 steps

    1. Clone the repository

      git clone 
      
    2. Checkout the branch you want

      git checkout $BranchName
      

提交回复
热议问题