【发布时间】:2016-05-09 06:53:08
【问题描述】:
我从 mac 终端将现有的 github 存储库克隆到我的本地,我拉了几次没有问题。我修改了一些代码,然后添加 .并提交,现在我不能在没有“权限被拒绝(公钥)”的情况下拉或推。我尝试过同时使用 ssh 和 https,并且有大量关于如何解决此问题的信息,但似乎对我没有任何作用,这让我发疯。
当我输入 ssh -vT git@github.com
我明白了:
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to github.com [....ip....] port 22.
debug1: Connection established.
debug1: identity file /Users/macbookpro/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
我的 id_rsa 实际上在路径中:
/Users/macbookpro/Documents/pub_key/id_rsa
如果这是问题,我该如何更新路径?
自从我克隆了 repo 后,我不应该只输入 git pull 吗?
【问题讨论】:
标签: git macos github ssh version-control