尝试在git commit中更改作者姓名,但出现错误

问题描述 投票:0回答:1

我正在尝试在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

我正在关注本教程-https://confluence.atlassian.com/bitbucketserverkb/how-do-you-make-changes-on-a-specific-commit-779171729.html

git visual-studio github commit git-commit
1个回答
0
投票

为了对此进行跟进,我与张贴者有同样的问题,正如评论所暗示的那样,问题的确是我使用的引语。从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)实际上已更新为使用不破坏命令的引号。

© www.soinside.com 2019 - 2024. All rights reserved.