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

前端 未结 6 2113
逝去的感伤
逝去的感伤 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

    run hg config --edit ( tested it in hg 3.1 both on linux debian and windows) it will create (if not exists) and open a file with text:

    # example config (see "hg help config" for more info)
    
    [ui]
    # name and email, e.g.
    # username = Jane Doe 
    username = 
    
    [extensions]
    # uncomment these lines to enable some popular extensions
    # (see "hg help extensions" for more info)
    # pager =
    # progress =
    # color =  
    

    fill "username" field and save the file

提交回复
热议问题