1. 程式人生 > >本地提交到github時出現錯誤

本地提交到github時出現錯誤

錯誤如下:

Commit failed - exit code 128 received, with output: '*** Please tell me who you are.
 
Run
 
  git config --global user.email "[email protected]"
  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: empty ident name (for <>) not allowed'

解決:找到隱藏目錄.git/config

新增如下命令即可:

[user]
    name = github的使用者名稱
    email = 註冊github的郵箱