7 version-control mercurial mercurial-keyring
我使用mercurial密钥环扩展将密码存储到BitBucket上的远程存储库,所以每次推送到远程存储库时我都不必输入密码.具有讽刺意味的是,每当我需要访问它时,它会要求我输入密码来解锁密钥环; 从而完全减轻了我对它的目的.我究竟做错了什么?
在我的全局mercurial配置(〜/ .hgrc)中,我有以下几行:
[extensions]
hgext.mercurial_keyring = /etc/mercurial/mercurial_keyring.py
Run Code Online (Sandbox Code Playgroud)
在我的repo mercurial config(.hg/hgrc)中,我有:
[paths]
default = https://username@bitbucket.org/username/repo
Run Code Online (Sandbox Code Playgroud)
例:
> hg out
> comparing with https://username@bitbucket.org/username/repo
> Please enter password for encrypted keyring:
Run Code Online (Sandbox Code Playgroud)
我已经尝试卸载密钥环并再次尝试.我也玩过我在网上找到的配置设置无济于事.关于mercurial,我也找不到关于加密密钥环和非加密密钥环的任何内容.
我怎样才能获得它,以便在我对远程仓库执行操作时根本不需要输入密码?