How do I clone a single branch in Git?

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

    Open the cmd.

    cd folder_name  # enter the path where to clone the branch
    

    Just one command:

    git clone url_of_projecturltoclone -b branch_name
    

提交回复
热议问题