Unable to auto-detect email address

前端 未结 14 1296
故里飘歌
故里飘歌 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:19

    If you are using sourcetree: Repository -> Repository Settings --> Advanced --> uncheck "Use global user settings" box

    worked great for me.

    0 讨论(0)
  • 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"
    
    0 讨论(0)
  • 2021-01-30 20:24

    Just type like "correct" case

    "wrong"

    git config --global mike.email "mike@gmail.com"
    git config --global mike.name  "mike"
    

    "correct"

    git config --global user.email "mike@gmail.com"    
    git config --global user.name "mike"
    

    user.name is your account name in git-hub user.email is your email when you sign in git-hub.

    0 讨论(0)
  • 2021-01-30 20:24

    With SmartGit, you can also edit them by going to Project > Repository settings and hitting the "Commit" tab (make sure to have "Remember as default" selected).

    0 讨论(0)
  • 2021-01-30 20:26

    Try the following steps,

    1. Open command prompt and then run
    2. git config --global user.email "YOU@EXAMPLE.COM" // put your email address press enter
    3. git config --global user.name "YOUR NAME" // put your name
    0 讨论(0)
  • 2021-01-30 20:26

    Ran the sample of these commands:

    git config --global user.email "focus1@gmail.com"

    git config --global user.name "focus1"

    Footnote:

    focus1@gmail.com === email address used to login to your github account.

    focus === your github username

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