Friday 24 May 2013

How to clone a single branch in git?


How to clone a single branch in git?
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@agave [~/Projects/skeleton] git branch
* master
  rails
  c
  c++



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

No comments:

Post a Comment