How do you set the username that Mercurial uses for commits?

前端 未结 5 815
夕颜
夕颜 2021-01-31 01:06

When I commit something in Mercurial like this:

hg commit -m \"username question\"

I see this output:

No username found, using          


        
5条回答
  •  一生所求
    2021-01-31 01:55

    Here is how my windows /users/xxx/mercurial.ini looks. I don't have to enter username or passwords for anything. Looks like it might be repo specific. I have tortoiseHG installed, not sure if that makes any difference.

    [ui]
    username=mbroekhuis
    
    [auth]
    repo.prefix=http://myrepo
    repo.username=mbroekhuis
    repo.password=secret
    

提交回复
热议问题