github - git push出错,求帮助?
黄舟
黄舟 2017-05-02 09:27:47
0
2
484

我在win下使用git推送到github遇到了这个问题
请问该怎么解决

$ git push -u origin master
ssh: Could not resolve hostname xxx: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
小葫芦

git remote -v checks whether your origin path is legal. Generally speaking it should be:

ssh://git@<host>:<port>/path_to_source.git 

Judging from the error message, the host xxx cannot be found;

  1. Make sure the warehouse address is correct

  2. Modify the hosts file and add the corresponding relationship between the host name and IP, or modify the origin url under the .git/config file to the IP address

phpcn_u1582

Check the dns. If there is no problem, check whether the public key of your current machine is in the warehouse you want to push to.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!