bitbucket - Git pull/clone a branch -


I just need to get files from a specific branch. I have tried some commands, but this whole repo Ends to draw, instead of just a few files, I need to draw from a specific branch to a directory.

git version 1.7.1

if you get an error:

  Git clone git@bitbucket.org: name / name.git -b mv_LookbookAddition --single-branch  

means That you need 1.7.10+ (June 2012), using, or for Mac for it.

But you will get complete history of the branch (if that branch is made from master , then you will get all commands from the master

You can try the --depth option only to get past earnings from a single branch and combine it

  git clone git@bitbucket.org: name / name. git -b yourBranch --single-branch --depth 10  

this is your clone repo will be shallow repo, which is why you need.

see .


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -