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"

posted @ 2014-12-05 14:14  ftsummerer  阅读(258)  评论(0编辑  收藏  举报