Mercurial Version Control show error in push

a 夏天 提交于 2019-12-02 16:13:06

Putting this in my .hgrc did the trick.

[hostfingerprints]
bitbucket.org = 45:ad:ae:1a:cf:0e:73:47:06:07:e0:88:f5:cc:10:e5:fa:1c:f7:99

You should check the fingerprint first by viewing the host's certificate. But if all looks fine you could use the above approach to do away with those pesky warnings.

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

NewUser

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!