-4

I paste the HTTP but it doesn't work.

$ git clone https://github.com/Msajjad313/coursera-test1.git
Cloning into ‘coursera-testi’...
Fatal: unable to access 'https://github.com/Msajjad313/coursera-test1.git/': Could not resolve host: github.com
rioV8
  • 18,123
  • 3
  • 18
  • 35
M.Sajjad
  • 1
  • 1
  • 1
  • 2
    Does this answer your question? [could not resolve host github.com error while cloning remote repository in git](https://stackoverflow.com/questions/20370294/could-not-resolve-host-github-com-error-while-cloning-remote-repository-in-git) – skaul05 Jul 14 '20 at 09:34

2 Answers2

1

What you're trying to access might not be public, so if its accessible from your git account, you will have to log in to your git account though the terminal.

First: git config --global user.name "your_username"

Then: git config --global user.email "your_email_address@example.com"

You can follow the process and read more about it HERE

  • There is nothing wrong with the repo, I can clone it without problem. No need to set credentials – rioV8 Jul 14 '20 at 13:38
0
Could not resolve host: github.com

Means you have a DNS or Firewall problem.

Try from a command line:

ping github.com

There is nothing wrong with the repo, I can clone it without problem.

rioV8
  • 18,123
  • 3
  • 18
  • 35