hg push error and username not specified in .hg/hgrc. Keyring will not be used

前端 未结 1 781
傲寒
傲寒 2021-01-15 15:41

I did the following:

hg clone ...somelink.to.repo.in.hg... Giga

cd Giga

ls (...it shows me giga.txt file exist in Giga directory)

相关标签:
1条回答
  • 2021-01-15 16:38

    if prompted multiple times for user credentials in mercurial. Setup Mercurial_Keyring and then

    this question comes which nobody explained in an easy way.

    ??? how to make the [auth] xx.prefix = servername/hg_or_something work for all repositories under servername/hg location either if I use servername, servername's IP or servername's FQDN ?

    Final ANSWER: Arun • 2 minutes ago −

    OK, I put this in ~/.hgrc (Linux/Unix -home directory's .hgrc hidden file) or Windows users %UserProfile%/mercurial.ini or %HOME%/mercurial.ini file.

    [auth]
    default1.schemes = http https
    default1.prefix = hg_merc_server/hg
    default1.username = c123456
    
    default2.schemes = http https
    default2.prefix = hg_merc_server.company.com/hg
    default2.username = c123456
    
    default3.schemes = http https
    default3.prefix = 10.211.222.321/hg
    default3.username = c123456
    

    Now, I can checkout using either Server/IP/Server's FQDN.

    0 讨论(0)
提交回复
热议问题