bryanbocao / awesome-cmd-cheatsheets

Quick search the commands you need.
3 stars 1 forks source link

Could not resolve host: github.com #12

Closed bryanbocao closed 1 year ago

bryanbocao commented 1 year ago

Tried to clone a repo to a new computer

git clone https://github.com/<repo_name>
Cloning into '<repo_name>'...
fatal: unable to access 'https://github.com/<repo_name>': Could not resolve host: github.com
bryanbocao commented 1 year ago
git config --global --unset http.proxy
git config --global --unset https.proxy

https://stackoverflow.com/questions/20370294/git-could-not-resolve-host-github-com-error-while-cloning-remote-repository-in