Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 如何克隆bitbucket中的特定分支_Ruby On Rails 3_Git_Ruby On Rails 4_Github_Bitbucket Api - Fatal编程技术网

Ruby on rails 3 如何克隆bitbucket中的特定分支

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中的远程存储库,但当我想将此存储库克隆到我的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:~/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静态页面练习可能重复
谢谢朋友。有没有办法克隆所有远程分支?。