成功克隆了来自heroku的repo并添加了另一个遥控器
1/ git clone git@heroku.com:[APP].git
2/ git remote add bitbucket ssh://git@bitbucket.org/[ACCOUNT]/[REPO].git
3/ git push bitbucket master
Run Code Online (Sandbox Code Playgroud)
运行第(3)行或使用SourceTree后,我仍然收到此错误
conq: repository access denied. access via a deployment key is read-only.
Run Code Online (Sandbox Code Playgroud)
首先,我不明白这个消息在实践中意味着什么.这太可惜了.
我确实创建了ssh密钥对并添加到heroku:
ssh-keygen -t rsa
heroku keys:add ./id_rsa.pub
Run Code Online (Sandbox Code Playgroud)
我还在BitBucket中的部署密钥部分添加了我的密钥.但我必须遗漏一些东西.这个问题并非出于懒惰,我一直在阅读各种文档,包括BitBuckets指南.但它仍然无法解决这个问题.
这篇文章与我可以将我的heroku git repo导入bitbuket有关吗?如何?
其他事实:
ssh -T hg@bitbucket.org
conq: authenticated via a deploy key.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
$ ssh -v git@bitbucket.org
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/joel/.ssh/config …Run Code Online (Sandbox Code Playgroud)