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

前端 未结 18 2048
孤城傲影
孤城傲影 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:08

    I would like to re-emphasize the following:

    • You might have added the SSH key to your repository (e.g. ExampleRepo), but this is NOT where the SSH key goes.
    • It is meant to go into YOUR PROFILE. This is the small avatar on the bottom left corner of the screen. Here, you'll find a different place to put your SSH Keys (under Security) > then you add the key here instead.
    • If you accidentally put your SSH key into the repository (as opposed to your account), then delete the one in the repository.

    Took me ages to realise, somehow even after reading the answers here it didn't click.

提交回复
热议问题