abort: no username supplied (see “hg help config”)

前端 未结 6 2110
逝去的感伤
逝去的感伤 2020-12-23 08:31

I have added repository and at the time of commit I get error as

error:  abort: no username supplied (see \"hg help config\") 

I am not ge

6条回答
  •  既然无缘
    2020-12-23 09:14

    Simple answer - in your .hg folder, create a file named .hgrc in there, add the following content (check hg help config for the exact syntax)

    [ui]
    username = forename surname 
    verbose = True
    

    and save it. Should work now. Note that verbose = True is not required, but I included it since it is listed in the help content

    (This is from memory, but hg help config will tell you the correct filename and syntax)

提交回复
热议问题