Stuck at push, nothing happens
Here is a little out of the box thinking.
Do you have a VPN on?
Close all of your applications including the VPN and terminal then try again.
It is amazing how many times just turning things off then on has helped at times, sometimes things just get stuck and need a "power start" may it serve you as well too.
In my case the https connection was not working. Change remote origin url, not using https but git
git remote set-url origin [email protected]:username/reponame.git
This url can be found on your github or gitlab project page
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.