Unable to push error fatal: unable to access 'https://github.com/user/repository.git/': Could not resolve host: github.com I have No problem in cloning, and also no problem in pushing from one of my repository. How can I smoothly push from all my repository.
Asked
Active
Viewed 176 times
1 Answers
0
As I mentioned before, in that specific repository, do a git remote -v
to check what remote URL you are using.
And you can compare that URL with the one used in another local repository from which you can push.
That way, you can infer why this particular repository cannot push.
The OP pradeep adds in the comments:
I could push successfully after uninstalling Git and then reinstalling it.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
Problem resolved and I could push successfully after uninstalling git and then reinstalling – pradeep May 19 '21 at 18:14
-
@pradeep Thank you for this feedback. I have included your comment in the answer for more visibility. – VonC May 19 '21 at 18:37