Cannot push to Git repository on Bitbucket

后端 未结 21 720
春和景丽
春和景丽 2020-11-29 14:40

I created a new repository and I\'m running into a strange error. I\'ve used Git before on Bitbucket but I just reformatted and now I can\'t seem to get Git to work. After

21条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 15:33

    Reformatted means you probably deleted your public and private ssh keys (in ~/.ssh).

    You need to regenerate them and publish your public ssh key on your BitBucket profile, as documented in "Use the SSH protocol with Bitbucket", following "Set up SSH for Git with GitBash".

    Accounts->Manage Accounts->SSH Keys:

    http://solvedproblems.hydex11.net/_media/solved-problems/crazy-problems/bitbucket_manage_account.png

    Then:

    http://solvedproblems.hydex11.net/_media/solved-problems/crazy-problems/bitbucket_add_ssh.png

    Images from "Integrating Mercurial/BitBucket with JetBrains software"

提交回复
热议问题