git远程关联仓库为啥就不能通过呢

ziluopao 发布于 08/20 11:55
阅读 33
收藏 0
Git

首先秘钥创建测试是成功的

[root@localhost .ssh]# ssh git@github.com
PTY allocation request failed on channel 0
Hi mildik! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
[root@localhost .ssh]# 

然后试图连接远程仓库:

[root@localhost .ssh]# git remote add origin git@github.com:mildik/haoshop.git
fatal: Not a git repository (or any of the parent directories): .git
[root@localhost .ssh]# 

可能有人怀疑 mildik/haoshop是没有在远程仓库中创建,放心吧,我早就创建好了,不是这里的问题

加载中
返回顶部
顶部