”ssh: connect to host gmail.com port 22: Network is unreachable"的解决办法

来源:互联网 发布:智能排班软件 编辑:程序博客网 时间:2024/06/12 01:33

今天终于配置好自己的github了。上次话了好多时间,遇到这个问题,搞不定。

jasonleaster@ubuntu:/Ad_Pro_in_Unix$ git push -u origin master

ssh: connect to host gmail.com port 22: Network is unreachable
fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.


其实问题是由于远端没有进行仓库的初始化。

只要执行

git --bare init

OK .... 

0 0
原创粉丝点击