How to save username and password with Mercurial?

后端 未结 8 1854
执念已碎
执念已碎 2020-11-28 00:26

I used Mercurial in a personal project, and I have been typing my username and password every time I want to push something to the server.

I tried adding the followi

8条回答
  •  温柔的废话
    2020-11-28 01:16

    mercurial_keyring installation on Mac OSX using MacPorts:

    sudo port install py-keyring
    sudo port install py-mercurial_keyring
    

    Add the following to ~/.hgrc:

    # Add your username if you haven't already done so.
    [ui]
    username = email@address.com
    
    [extensions]
    mercurial_keyring =
    

提交回复
热议问题