github submit using git commit, an error Please tell me who you are

Symptoms:

 

 

Cause of the problem : no configuring Git, Git not various operations;

Solution one (perfect solution):

  1. git config --global user.email "[email protected]"  
  2. git config --global user.name "Your Name"

Solve results:

 

 

Solution two: (The machine is invalid, the backup program)

Methods of individual project configuration (global and individual configuration exists when using the default configuration of the project separately):

1. Open the project directory, find the hidden .git folder. Note that this folder is hidden, show hidden out on the line.

2. Open the config file folder, it is recommended to open with nodepad ++.

3. Add these three lines to the file:

[the User]
name = XXX (your name)
Email = XXXX (mailbox)
way of course, through the command line, just under .git folder. For example, the following command:

git config user.name "xxxxx"

Guess you like

Origin www.cnblogs.com/illusion1010/p/11666927.html