Unable to auto-detect email address

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

    Well, the message is pretty much self-explanatory. You did not tell git what your name and email address is.

    Open a command line and type:

    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"
    

    Of course you should enter your real name and email. Afterwards git knows who you are and is able to insert this information in your commits.

    Seems like smartgit does not add the git binary to your path. You have to add its path to the PATH environment variable or first change to the corresponding directory. You can find a screencast here: http://blog.dragndream.com/?p=97

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

    open your git command line

    put

    git config --global user.email "you@example.com"

    this command on command line and change email address put your own email which those use creating accout for github

    hit enter

    put git config --global user.name "Your Name"

    use your own name insted of your name

    hit enter

    its work...

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

    This problem has very simple solution. Just open your SmartGit, then go to Repository option(On top left), then go to settings. It will open a dialog box of Repository Settings. Now, click on Commit TAB and write your UserName and EmailId which you give on BitBucke website. Now click ok and again try to Commit and it works fine now.

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

    In case you're using git, use the right email address you used for github registration and then your computer name. this worked for me.

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

    Put your computer's username

    git config --global user.email "YOU@EXAMPLE.COM"
    git config --global user.name "YOUR COMPUTER\'S USERNAME"
    
    0 讨论(0)
  • 2021-01-30 20:18

    Make sure that you opened git as admin or root.

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