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 You can try the --depth option only to get past earnings from a single branch and combine it this is your clone repo will be shallow repo, which is why you need. see . master
, then you will get all commands from the master
git clone git@bitbucket.org: name / name. git -b yourBranch --single-branch --depth 10
Comments
Post a Comment