I'm doing the Git and Github google course on coursera, and I'm new at this. I already have a Github account, but never used it from the terminal.
Following the instructions of the course, I'm trying to clone a repository I have in my github account to my Git in the Ubuntu terminal. Following the command:
git clone https://github.com/username/repositoryname.git Cloning into 'repositoryname'... fatal: unable to access 'https://github.com/username/repositoryname: Could not resolve host: github.com
I have a user in Git that is the same as in Github, and I'm using the email address that github provides to me to use in Git.
The teacher places the git clone command and the https address, then it asks for username and password, and he directly gets it done ok. but I get an error.
What is wrong here and how can I fix it?
Note: Mi pc is Windows OS, working on Ubuntu for windows, and if I use gitbash I get the same error.