I am getting an error message "Could not resolve host: gitlab.com" when I try to push my code from my Macbook

I have a project on my Macbook which I used to regularly update to Gitlab without any issues. But when I tried to push the code today I got the below error message:

fatal: unable to access 'https://gitlab.com/saad.shaikh/musbizz.git/': Could not resolve host: gitlab.com

How do I fix this so I can push my code to Gitlab?

Sounds like your computer has problems resolving DNS. Therefore that is a network issue at your end or problem with your computer.

It is working now all of a sudden when I tried to re-push it. I did not make any changes so I don’t know how it got fixed.

1 Like