git 错误:

来源:互联网 发布:mastercam9.1四轴编程 编辑:程序博客网 时间:2024/05/29 03:24

fatal: unable to access ‘https://githhub.com/GreenALan/test2.git/‘: Failed to connect to githhub.com port 443: Connection refused

这个错误主要是更新的是用ssh协议,不是用http协议:
所以将git remote add origin https://GreenALan:lvshaohui1995@github.com/test2.git
改成: git remote add origin git@github.com:GreenALan/test2.git
就行了。

0 0
原创粉丝点击