git - Git: Cannot change author name/committer name with $ git config --global user.name
问题描述
When I push changes to github, a wrong author name appears. I tried to change the settings globally and for the specific repository with
$ git config --global user.name "Right Name"
and
$ git config user.name "Right Name"
but that didn't help. I deleted the credentials stored in Keychain Access with no success.
I changed the author name only for the next commit with:
$ git commit --author="Right Name <right@name.org>"
It resulted in: "Right Name authored and Wrong Name committed" on Github.
$ git config --list
shows "Right Name" but still on Github the author name is "Wrong Name". What am I doing wrong?
(Please note: I don't need to change the author of previous commits. I just would like to commit with the right author name in the future)
解决方案
推荐阅读
- c - 如何使用 C 表达式操作数将函数地址传递给汇编程序指令
- azure-devops - 有没有办法将 ECR 映像设置为 Azure Devops 中的构建工件?
- java - 在linux中安装Tn5250j模拟器给出java.lang.NoClassDefFoundError:无法初始化类sun.awt.X11.XToolkit
- python - 当列中两个连续的单元格值(字符串)相同时如何拆分数据框
- android - 为什么返回上一个Activity时会有onCreate调用?
- c# - 为私有变量设置这个公共是否有意义?
- android - 后端 API 调用的有效 FirebaseIdToken
- flutter-layout - Web 应用程序 ui 在特定的移动浏览器中工作异常
- node.js - 存储在 AWS s3 存储桶中的空文件
- smtp - Google OAuth API 验证的“验证要求例外”中的“单账户 SMTP 插件”是什么?