Cannot push to Git repository on Bitbucket

后端 未结 21 695
春和景丽
春和景丽 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:35

    I solved this by removing the remote using command:

    git remote remove origin
    

    and then tried to add remote using https url instead of ssh

    git remote add origin httpsUrl
    

    It asks for github credentials. Enter credentials and then try pushing to git using:

    git push origin master
    

提交回复
热议问题