git: pull a single branch - Evanto/qna GitHub Wiki

git pull

2.5 Основы Git - Работа с удалёнными репозиториями

How to clone a specific branch in git bitbucket
You can clone a single branch (without inadvertently cloning the whole project) with the following:
git clone <url> --branch <branch> --single-branch [<folder>]

Pull specific branch from git
Try:git clone [email protected]:project/project.git -b develop_one --single-branch

How to clone a specific branch in git
Example: git clone -b develop [email protected]:user/myproject.git

Clone only one branch [duplicate]

Setting up github and bitbucket on the same computer

Git fetch remote branch

What is the difference between 'git pull' and 'git fetch'?
In the simplest terms, git pull does a git fetch followed by a git merge

problem:

eva@eva-CR70-2M-CX70-2OC-CX70-2OD:~/Develop/Ruby/qna$ sudo git clone [email protected]:qna/qna.git -b module-9 --single-branch
[sudo] password for eva: 
Cloning into 'qna'...
The authenticity of host 'bitbucket.org (104.192.143.2)' can't be established.
RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'bitbucket.org,104.192.143.2' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
eva@eva-CR70-2M-CX70-2OC-CX70-2OD:~/Develop/Ruby/qna$ git pull origin module-9
fatal: Couldn't find remote ref module-9
eva@eva-CR70-2M-CX70-2OC-CX70-2OD:~/Develop/Ruby/qna$ git clone -b 9clone module-9
fatal: repository 'module-9' does not exist

Warning: Permanently added the RSA host key ...

Bitbucket rejects public key #87

⚠️ **GitHub.com Fallback** ⚠️