github - git push remote repository failed
天蓬老师
天蓬老师 2017-05-02 09:47:54
0
3
669

I built a remote library on github
and then wanted to merge the local code into the remote library, but it reported the following error
I created an empty one on github during the previous test Kuran Afterwards, it can be pushed locally.
Why does it keep reporting the following error when creating a library on github?
What methods are also used onlinegit pulletc. are useless
This What's going on?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
世界只因有你

Look at the last two lines of the warning message and put git://换成https://

过去多啦不再A梦

You are currently using SSH, and the warehouse address should be git@github.com:Missyanwen/2017KK.git
如果要用https,仓库地址应该是https://github.com/Missyanwen/2017KK.git
The error message is very clear, but you successfully mixed these two addresses into one:p

小葫芦

You made a mistake with the URL of the warehouse. You can change the URL of the remote warehouse to https://github.com/Missyanwen...

git remote set-url origin https://github.com/Missyanwen/2017KK.git

By the way, there are three main protocols used by git: https, git, and ssh. The first two are more commonly used, as mentioned on the second floor:

The error message is very clear, but you successfully mixed these two addresses into one:p

It is recommended that novices use https protocol.

You can directly copy the address of the remote warehouse as its url.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template