K
K
Knyashshsh2017-11-20 14:59:36
git
Knyashshsh, 2017-11-20 14:59:36

push not working?

By writing git remote add origin https://github.com/fyapy/zerot.git there are no errors
But when writing git push -u origin master It
gives
fatal: remote error:
You can't push to git://github.com/fyapy /zerot.git
Use https://github.com/fyapy/zerot.git

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FilatovNikita, 2018-03-18
@fyapy

Good afternoon ! I’ll describe this problem in more detail, since I myself encountered it, the funny thing is that most likely you will hardly find information on this issue on any forums, well, at least I couldn’t find something on this issue . In general, let's start with the fact that I had this error on my laptop and from it I could not launch more than 1 project, this error came out every time. And within 2 weeks, I sat down and started to google, but nothing but how to do git remote set-url origin https://github.com/user/repo.git or change the config file was not offered, the funniest thing about all this is that if you do these actions that I wrote about above and call the git remote -v command, then the address will still be git://, not http://.It was very unclear to me what the cause of this error was, since none of the methods helped, then I decided to rearrange the entire git system simply by removing the program and reinstalling it, this did not help from the error. In general, after suffering and many tried methods, I cleaned the contents of the .gitconfig file in the c: / users / username / directory and only after that the push command miraculously worked. I hope this will help you avoid torment and numerous ways to fix this error, since I repeat, I did not find information on this issue on the network, there were many different ways, but only this one specifically helped me))

E
Egor Zhivagin, 2017-11-20
@Krasnodar_etc

git remote set-url origin https://github.com/fyapy/zerot.git

Try it, it might help. Judging by the error, you have the wrong address - git://github.com/fyapy/zerot.git .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question