git使用中遇到的错误及解决方法

problem 1:

$ git commit -m "add some test scripts"

Run

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

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'ftsummerer@ftsummerer.(none)')

solution:

$ git config user.email "your email"

$ git config user.name "your name"

原文地址:https://www.cnblogs.com/ftsummerer/p/4146562.html