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 pull
etc. are useless
This What's going on?
世界只因有你2017-05-02 09:49:54
Look at the last two lines of the warning message and put git://
换成https://
过去多啦不再A梦2017-05-02 09:49:54
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
高洛峰2017-05-02 09:49:54
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.