I used to use git before without any problems, but suddenly I can't push or clone anything. When I use this command, nothing happens, not even an error, so I have to press ctrl + c or just close the git window.
I use this simple command for pushing:
git push origin master
Also tried with -u parameter.
So, what can I do to solve this?
Update:
I installed a fresh copy of Win XP on virtual machine and tried to push something, same result as before, so maybe there's a problem with my internet connection.
Any ideas?
Update 2021: this is again an issue, when pushing with HTTPS URL, with Git 2.32 (June 2021).
See details here: there is a bug with the Microsoft Git Credential Manager Core, which is why, as Pinak Ganguly suggests, you might want to switch temporarely to the obsolete Git Credential Manager:
git config --global credential.helper manager
First, there was some issue with ssh access recently:
We are currently investigating SSH access problems on one of our fileserver pairs. A small number of repositories may be affected.
Second, you would need to try and use https, not http:
git remote set-url origin https://github.com/username/reponame
Third, the git push -u origin master
is only for the first push (after that, git push
alone is enough: see "Why do I need to explicitly push a new branch?" for more)
If the push or clone issue still persists, then you need to contact GitHub support to know more about this.