作者在 2013-07-15 12:10:26 发布以下内容
cd #返回用户目录
vi .hgrc
username = gs412 <gs412@126.com>
verbose = False
editor = gvim -f
[paths]
default = https://user:pass@repo.url.com/hg/TMS
[hostfingerprints]
repo.url.com = bb:95:72:42:ef:9f:c6:ec:77:1e:b7:f4:b4:1e:3c:f2:b1:49:29:63
先添加红色部分,然后运行命令
hg push
如果出现类似下面的提示
warning: repo.url.com certificate with fingerprint bb:95:72:42:ef:9f:c6:ec:77:1e:b7:f4:b4:1e:3c:f2:b1:49:29:63 not verified (check hostfingerprints or web.cacerts config setting)
则添加蓝色部分