I will recommend you to follow the following link:
https://help.github.com/en/articles/cloning-a-repository
If you get the following error while git clone URL command
fatal: unable to access 'URL': Could not resolve host: github.com
Then use the following command to fix it:
git config --global --unset https.proxy