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)\
If you are using sourcetree: Repository -> Repository Settings --> Advanced --> uncheck "Use global user settings" box
worked great for me.
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:
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
Open a command line and type:
git config --global user.email "YOU@EXAMPLE.COM"
git config --global user.name "YOUR NAME"
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.
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).
Try the following steps,
git config --global user.email "YOU@EXAMPLE.COM"
// put your email
address press entergit config --global user.name "YOUR NAME"
// put your nameRan 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