天天看點

fatal: unable to auto-detect email address (got '[email protected](none)')

fatal: unable to auto-detect email address (got '[email protected](none)')

解決

2 down vote 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 "[email protected]"
git config --global user.name "YOUR NAME"
           
2 down vote 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 "[email protected]"
git config --global user.name "YOUR NAME"
           
share improve this answer answered  Sep 23 '15 at 22:43
fatal: unable to auto-detect email address (got '[email protected](none)')
SHi ON 399 2 12