-- 创造无限可能

git 提交修改代码

2023-08-14 23:54:37
293 人浏览 0 人点赞
有用,点赞支持一下

git commit -m ‘修改的内容’ 回车 出现如下报错

解决思路:
1、先 git add .
2、再执行 git config —global user.name “li”
3、提交 git commit -m ‘修改的内容’
4、推送 git push

报错:

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: unable to auto-detect email address (got 'Administrator@WIN-9FJ5JU4H8G1.(none)')