How to entirely disable SSL certificate checks in Mercurial / TortoiseHg?

前端 未结 4 874
无人及你
无人及你 2020-12-13 09:14

I\'m looking for a way to make --insecure option the default one for any hg \\ TortoiseHg command.

Please don\'t write this is a bad practi

4条回答
  •  离开以前
    2020-12-13 09:29

    You can use aliases to achieve that. Add this to your .hgrc :

    [alias]
    push = push --insecure
    

    Problem is you wil have to do this for each command you want to use and I suggest you use different names for your aliases than the default one.

    As far as I know, there's no way to enforce --insecure for all commands "automatically".

提交回复
热议问题