如何克隆bitbucket中的特定分支
我有一个远程存储库托管在bitbucket,但是当我想克隆这个存储库到我的电脑
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 clone --branch branchname cloneUrl
例
git clone - 分支功能https:// cloneurl
链接地址: http://www.djcxy.com/p/16055.html