当你在使用Git进行commit操作时遇到“author identity unknown”的错误,这通常意味着Git无法识别你的用户身份,即你没有为你的Git仓库配置用户名和邮箱。以下是解决这个问题的步骤: 确认错误: 当你在命令行中执行git commit时,如果Git没有配置用户名和邮箱,它可能会显示类似“*** Please tell me who you are. Run...
(3)提交到本地仓库 使用命令commit: git commit 后续有一个文件(vi语法,修改之后保存退出),再查看status: 注意:需要设置用户名和用户邮箱才能使用 git使用commit命令后显示Author identity unknown的解决方法 1.3 推送到远程仓库 (1)查看默认的推送地址: git remote -v (2)推送 注意:这里会弹出github的提示,需要...
git commit -m "create readme.md"提示输入作者信息 $ git commit -m "create readme.md" 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 defaultidentity. Omit ...
正常显示结果如下:简单解释一下git commit命令,-m后面输入的是本次提交的说明,一般就是简单写写改动记录。 git commit命令执行成功后会告诉你,1 file changed:1个文件被改动(我们新添加的main.c文件);19 insertions:插入了19行内容(main.c有19行内容)。 答疑解惑一 如果显示如下提示: Author identity unknown**...
注意: git使用commit命令后显示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. ...
如果只为当前仓库设置git配置信息会怎样?
You can view all of your settings and where they are coming from using: $ git config --list --show-origin Your Identity The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and...
test_i18ngrep "Author identity unknown" err ) ' test_expect_success'empty configured name does not auto-detect for committer'' ( sane_unset GIT_COMMITTER_NAME && test_must_fail \ git -c user.name= commit --allow-empty -m foo 2>err && ...
Description When trying to create a commit, I get the error "Fail to set your identity. Unhandled error". I run Jupyter inside an venv environment. But I get this message. The repo is from a private GitLab instance and I use a signing ke...
The--env-filteroption can be used to modify committer and/or author identity. For example, if you found out that your commits have the wrong identity due to a misconfigured user.email, you can make a correction, before publishing the project, like this: ...