Unable to auto-detect email address

前端 未结 14 1348
故里飘歌
故里飘歌 2021-01-30 19:40

I\'m new to SmartGit. I can\'t commit through my repository, the message I\'m receiving is:

Unable to auto-detect email address (got \'Arreane@Arreane-PC.(none)\         


        
14条回答
  •  梦谈多话
    2021-01-30 20:23

    You can solve the problem with the global solution, but firstly I want to describe the solution for each project individually, cause of trustfully compatibility with most of Git clients and other implemented Git environments:

    • Individual Solution

    Go to the following location:

    Local/repo/location/.git/
    

    open "config" file there, and set your parameters like the example (add to the end of the file):

    [user]
        name = YOUR-NAME
        email = YOUR-EMAIL-ADDRESS
    
    • Global Solution

    Open a command line and type:

    git config --global user.email "YOU@EXAMPLE.COM"
    git config --global user.name "YOUR NAME"
    

提交回复
热议问题