Repository access denied. access via a deployment key is read-only

前端 未结 18 2021
孤城傲影
孤城傲影 2020-11-29 15:49

After successfully cloning my repo from heroku and added another remote

1/ git clone git@heroku.com:[APP].git
2/ git remote add bitbucket ssh://git@bitbucket         


        
18条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 16:04

    First choose or create the key you want to use for pushing to Bitbucket. Let's say its public key is at ~/.ssh/bitbucket.pub

    • Add your public key to Bitbucket by logging in and going to your public profile, settings, ssh-key, add key.
    • Configure ssh to use that key when communicating with Bitbucket. E.g. in Linux add to ~/.ssh/config:
        Host bitbucket.org
        IdentityFile ~/.ssh/bitbucket
    

提交回复
热议问题