我正在尝试在git commit中更改作者姓名,但出现错误。我已经尝试了几件事,但无法完成这项工作。
这是我正在尝试的方法,但出现以下错误:
git commit --amend --author=“Nik Ron <[email protected]>”
LM0810:Automation nik.ron$ git commit --amend --author=“Nik Ron <[email protected]>”
bash: [email protected]: No such file or directory
为了对此进行跟进,我与张贴者有同样的问题,正如评论所暗示的那样,问题的确是我使用的引语。从don kon
提供的示例中:
git commit --amend --author=“Nik Ron <[email protected]>”
请注意Nik Ron <[email protected]>
周围的四舍五入和不对称的引号
用“/”
引号替换"
引号(见下文)为我解决了这个问题。
git commit --amend --author="Nik Ron <[email protected]>"
看来don kon
之后的教程(here)实际上已更新为使用不破坏命令的引号。