【发布时间】:2013-09-28 16:33:34
【问题描述】:
为了让自己登录到两个不同的 Heroku 帐户,我使用了.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[branch "master"]
[remote "heroku"]
url = git@myrepo:myrepo.git
fetch = +refs/heads/*:refs/remotes/heroku/*
[remote "origin"]
url = git@github.com:peternixey/myrepo.git
fetch = +refs/heads/*:refs/remotes/origin/*
和~/.ssh/config:
Host myrepo
HostName heroku.com
IdentityFile ~/.ssh/myrepo
IdentitiesOnly yes
GitX 似乎无法处理这个
GitX 似乎没有为该帐户选择正确的密钥。当正确的密钥是 myrepo.pub 时,它会继续尝试使用 id_rsa.pub。 RSA 密钥本身也有一个密码。
这是 GitX(l)(如 Lima 中的 L),在当前配置中基本上无法使用,如何停止密码要求?
【问题讨论】:
-
当您使用clone the
https://URL 而不是git://时,也会发生这种情况。显然,由于某种原因,您不能通过 HTTPS 使用密钥身份验证。
标签: gitx