Github ssh密钥已添加、已检查,但仍然不';行不通
我根据这个创建了ssh密钥 将其分配给ssh代理 按此将其添加到github帐户 显示正确的封装外形Github ssh密钥已添加、已检查,但仍然不';行不通,github,ssh,ssh-keys,Github,Ssh,Ssh Keys,我根据这个创建了ssh密钥 将其分配给ssh代理 按此将其添加到github帐户 显示正确的封装外形 ssh -T git@github.com 说: 要求: Username for 'https://github.com': 有什么想法吗?提前感谢。请查看以下内容: 高是您通过HTTPS克隆repo,现在希望使用SSH推送的更改 按照上的建议,通过执行以下操作检查您的远程来源: $ git remote -v origin https://github.com/USERNAME/REP
ssh -T git@github.com
说:
要求:
Username for 'https://github.com':
有什么想法吗?提前感谢。请查看以下内容:
高是您通过HTTPS克隆repo,现在希望使用SSH推送的更改
按照上的建议,通过执行以下操作检查您的远程来源:
$ git remote -v
origin https://github.com/USERNAME/REPOSITORY.git (fetch)
origin https://github.com/USERNAME/REPOSITORY.git (push)
如果您有https…
请通过以下操作将其更改为ssh
:
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
小心尾随的
.git
!
Username for 'https://github.com':
$ git remote -v
origin https://github.com/USERNAME/REPOSITORY.git (fetch)
origin https://github.com/USERNAME/REPOSITORY.git (push)
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git