第一次使用git提交失敗的解決方法

在第一次練習使用時,在使用git commit命令時會執行失敗,比如我在首次使用時先使用git init命令初始化本地倉庫,然後要用git commit -m "Initial commit"命令提交,但是提示失敗:
*** 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: unable to auto-detect email address (got 'Aoliaovier@HaoyongWin10PC.(none

)’)

如果你報出的以上錯誤那麼你可以使用以下方法所解決

發佈了12 篇原創文章 · 獲贊 2 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章