Ruby on rails 3 如何克隆bitbucket中的特定分支
我有一个托管在bitbucket中的远程存储库,但当我想将此存储库克隆到我的pc时Ruby on rails 3 如何克隆bitbucket中的特定分支,ruby-on-rails-3,git,ruby-on-rails-4,github,bitbucket-api,Ruby On Rails 3,Git,Ruby On Rails 4,Github,Bitbucket Api,我有一个托管在bitbucket中的远程存储库,但当我想将此存储库克隆到我的pc时 Bitbucket克隆主分支 我想克隆另一个名为static_pages_exercises的分支,它也托管在同一个远程项目中。那有可能吗 Error:it clones the remote master branch no the remote static-pages-exercises branch daniel:~/workspace$ mkdir sample_app daniel:~/works
Bitbucket克隆主分支 我想克隆另一个名为static_pages_exercises的分支,它也托管在同一个远程项目中。那有可能吗
Error:it clones the remote master branch no the remote static-pages-exercises branch
daniel:~/workspace$ mkdir sample_app
daniel:~/workspace$ git init .
Reinitialized existing Git repository in /home/fernando/workspace/.git/
fernando@fernando:~/workspace$ git clone git@bitbucket.org:ferbad1212/sample_app.git
Cloning into 'sample_app'...
remote: Counting objects: 139, done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 139 (delta 42), reused 0 (delta 0)
Receiving objects: 100% (139/139), 23.05 KiB, done.
Resolving deltas: 100% (42/42), done
请尝试下面的命令
git克隆——分支分支名称克隆
范例
git clone--分支功能添加
-b静态页面练习可能重复
谢谢朋友。有没有办法克隆所有远程分支?。