stash icon indicating copy to clipboard operation
stash copied to clipboard

Git cannot clone private GitHub repositories

Open JSogaard opened this issue 5 years ago • 4 comments

When I try to clone a private GitHub repository, Git gives me this error message:

<class 'dulwich.errors.GitProtocolError'>: unexpected http response 401

I have not tried SSH.

No problems with public repositories.

JSogaard avatar Aug 22 '19 13:08 JSogaard

The only way you can clone a private GitHub repo is Github App on Desktop or downloading the zip from the GitHub website. If they allowed you to clone it via command line, anyone with the repo name would just clone it and get access

wxllow avatar Sep 05 '19 10:09 wxllow

SSH won't work either

wxllow avatar Sep 05 '19 10:09 wxllow

You can clone a private repository by using this url: 'https://user:password@your_git_repo_url.git'

DedSecer avatar Jul 27 '20 06:07 DedSecer

true I didn't know anything ab. git last year cuz I had only used it to clone public repos 💀

wxllow avatar Aug 31 '20 22:08 wxllow