Mercurial Version Control show error in push

后端 未结 3 879
北海茫月
北海茫月 2021-01-30 21:28

I am using Mercurial version control for my project. Everything like push,pull,update is doing okay but one thing is going wrong: when I a

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 22:00

    Got this message from https://confluence.atlassian.com/display/BBKB/abort%3A+certificate+for+bitbucket.org+has+unexpected+fingerprint

    Bitbucket's certificates have changed to use SHA-2 since 6 May 2015. You'll need to update your local Mercurial configuration as follows:

    Find your global Mercurial configuration file .... For Windows, this file is called Mercurial.ini and is usually found in your user profile's home directory. For example (C:\Users\whoever\Mercurial.ini) For Unix/OSX, this file is called .hgrc and is found in ~/.hgrc (your home directory)

    Edit the line below [hostfingerprints] to reflect the new certificate

    [hostfingerprints]
    bitbucket.org = 46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:bc:f4:1a:5e:38:d7:ac:24
    

    Updated the windows Mercurial.ini file, after that no problem. Using Mercurial with Sourcetree.

提交回复
热议问题