Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in DevOps and Agile by (27.5k points)
edited by
What I did: I have created a remote repository on Github and I am trying to clone the remote repository on my local machine. While cloning I am providing the clone URL & target folder.

But every time I try to clone, I am getting this error:

Error: "fatal: unable to access 'https://github.com/hyperion057/spring-repo.git/': Could not resolve host: github.com"

What do I need to do to connect to GitHub?

1 Answer

0 votes
by (29.3k points)

I have faced the same after running out of disk space. I have closed and reopened the terminal, which fixed it once.
Here's what you can do before jumping right into some ad-hoc commands.

  • Try restarting the terminal tab
  • Try restarting the terminal app
  • If your disk is full (or about to be full) free up some disk space then restart terminal app
  • Try restarting the machine/OS

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...