Stuck in a jerk, nothing happens

I used git before without any problems, but all of a sudden I cannot click or clone . when I use this command nothing just happens, even an error, so I need to press ctrl + c or just close the git window.
I use this simple command to push:

git push origin master 

also tried with the -u option.

  • I opened port 22 in my firewall, no luck
  • I use both http and ssh, again no luck
  • I am installing a new version of git, no luck

so what can i do to solve this problem?

Update:

I installed a new win xp in a virtual machine and checked push something, the same result as before, so there may be a problem with connecting to the Internet.

any idea?

+4
source share
4 answers

Firstly, there was some problem with ssh access recent :

We are currently investigating SSH access issues on one of our server file pairs. A small number of repositories may be affected.

Secondly, you will need to try using https rather than http:

 git remote set-url origin https://github.com/username/reponame 

Thirdly, git push -u origin master intended only for the first push (after that, only git push enough: see " Why do I need to explicitly push a new branch? " For more)

If the push or clone problem still persists, you need to contact GitHub support to find out more.

+3
source

Add

git remote set-url "https://github.com/targetusername/targetrepo"

after

git remote add "https://github.com/targetusername/targetrepo"

and up

 git push -u origin master 
0
source

I came across several repositories and for some reason the power argument solved the problem.

 git push --force origin master 
0
source

I just wanted to tell you another reason why this could happen: if the remote control that you click on has IP filters installed, it will flash without output. In my case, my laptop was connected to Wi-Fi, which did not connect through a whitelist of IP addresses.

0
source

Source: https://habr.com/ru/post/1486452/


All Articles