出錯“Author identity unknown *** Please tell me who you are. Run git config --glo”


當使用git出現錯誤

Author identity unknown

*** Please tell me who you are.

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: empty ident name (for <2454373641@qq.com>) not allowed

解決方法:

依次輸入以下命令:

1git init
2.git config user.name  "gitee/gitHub的用戶名稱"
3.git config user.email  "你的郵箱"
4.git add *
5.git commit -m "注釋"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM