How to add heroku key to git to work properly

后端 未结 2 1514
执笔经年
执笔经年 2021-02-09 15:28

I am using windows7. I have created heroku APP using

heroku create loka-xxxx

It will create an app for me with git link.

git@h         


        
2条回答
  •  遇见更好的自我
    2021-02-09 15:55

    If you only have your git keys, you can add your current SSH public key to Heroku to allow pushing with whatever key is already configured on your local git install:

    > heroku keys:add
    

    ... and then select id_rsa.pub or whichever key you are using already.

    This will allow you to push to github using your existing key.

    If you have the private key for the public key already on your Heroku account (listed via heroku keys), you can over-write the default private key in $HOME/.ssh/id_rsa with your Heroku private key.

提交回复
热议问题