How to save username and password with Mercurial?

后端 未结 8 1856
执念已碎
执念已碎 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:04

    If you are using TortoiseHg you have to perform these three steps shown in the attached screen shot, this would add your credentials for the specific repository you are working with.

    To add global settings you can access the file C:\users\user.name\mercurial.ini and add the section

    [auth]
    bb.prefix=https://bitbucket.org/zambezia/packagemanager
    bb.username = $username
    bb.password = $password
    

    Hope this helps.

提交回复
热议问题