2
admins-MacBook-Pro:Dev sam$ git clone https://github.com/pr.git
Cloning into 'pr'...
fatal: remote error:
  Repository not found.
admins-MacBook-Pro:Dev sam$ git clone [email protected]:pr.git
Cloning into 'pr'...
...
Checking connectivity... done.

As you see, git clone with ssh works, but not with https. How can I make it works with https?

1
  • Hi @AmazingDayToday Have you get solution to resolve this issue? Commented Dec 11, 2021 at 14:22

1 Answer 1

2
  1. check url

    If the url is correct, we can see the page when we enter the url.

  2. check remote repo is private or public

    if the repo is a private you can't access or wrong credentials.

    Instead of

    git clone https://github.com/NAME/repo.git
    

    url should be

    git clone https://username:[email protected]/NAME/repo.git
    
Sign up to request clarification or add additional context in comments.

1 Comment

I don't think username@password works. It should be username@personal_access_token

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.