Sunday 5 May 2013

How to clone a single branch in git?branch_name



I have a local git repository. has a few branches, for different kinds of projects:

open terminal

   # cd  /home/project path
         
                git branch
             * master
                rails
                dev
 


Solution:

           git clone user@git-server:project_name.git  -b branch_name      /some/folder

No comments:

Post a Comment