Cloning a specific branch from GitHub - fatal error

Fabulini

I am trying to clone this branch from GitHub. I use Ubuntu VM and typed in the terminal:

git clone --single-branch --branch python3 [email protected]:HaseloffLab/CellModeller.git

Output:

Cloning into 'CellModeller'...
The authenticity of host 'github.com (140.82.118.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,140.82.118.3' (RSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I also tried git clone -b <branch> <remote_repo> and permission is denied.

Saurabh P Bhandari

From GitHub help page,

Cloning with SSH URLs

SSH URLs provide access to a Git repository via SSH, a secure protocol. To use these URLs, you must generate an SSH keypair on your computer and add the public key to your GitHub account. For more information, see "Connecting to GitHub with SSH"

When you git clone, git fetch, git pull, or git push to a remote repository using SSH URLs, you'll be prompted for a password and must provide your SSH key passphrase. For more information, see "Working with SSH key passphrases."

You can also use HTTPS URL to clone.

In your case it would be :

git clone -b python3 https://github.com/HaseloffLab/CellModeller.git

Read more about Cloning with HTTPS URL here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Github switch from one branch to another after cloning repository

List Git commit SHAs from a specific branch without cloning the repository

Checkout a specific branch - Not Found error in github actions

Install specific branch from github using Npm

Install package with pip from specific branch of github

Jenkins and Github trigger PUSH from specific branch

How to pull a specific branch from Github

Cloning into D:\.. error: cannot spawn C:\.., permission denied fatal [Github Desktop]

I got error cloning my project from github on server

Move Specific Files from One Branch to Another Branch in Github

Cloning a branch other than master on GitHub

cloning laravel project from github

Cloning three other branches from a branch

Cloning a single branch from a git repo

Cloning code from master branch to local repository

Running Github Action When PR is raised from specific branch name to specific branch name?

Cloning from Github to a specific directory results in an empty directory. Where are the files?

Cloning an android project from github from Mac pc to Windows pc gives error R cannot be resolved

Github: error cloning my private repository

How to solve an error while cloning a github repository

How to solve npm install error “npm ERR! code 1” cloning react app from github

Download a specific branch of a github project

Searching code in a specific GitHub branch

GitHub - Create issues specific to a branch?

Restrict branch X to be merged only from one specific branch Y in Github

Error when pushing to remote master branch on GitHub from VSCode

Error publishing master branch to GitHub from VS.NET

create express app after cloning from github

Change name of folder when cloning from GitHub?