【发布时间】:2019-07-19 11:02:35
【问题描述】:
当我尝试推送到我的 git 实验室帐户时,我不断收到相同的消息:
“确保你在 git 中配置了你的 'user.email' 和 'user.name'”。
我已经完成了
git config --global user.name "John Doe"
git config --global user.email "johndoe@email.com"
我已经检查过/
git remote -v
有人对我还能做什么有任何想法吗?
【问题讨论】:
-
一些可能有助于故障排除的信息:(1) 您正在使用什么操作系统? (2) 你用的是什么Git客户端软件?
-
我想,如果你已经提交了,你应该重新提交,以便作者根据你已经做出的修订得到更正。如果它是一个单一的修订版,您可以使用
git commit --amend --author="john doe"(正确的 John Doe 为您的名字)。那么它可能会起作用。 -
我在 Windows 10 上,我不确定它是什么客户端软件......也许是 git 2.20.1?抱歉,我是 git 新手。
-
这是我在执行 git commit --amend -- author = "john doe" 错误时得到的结果:pathspec 'author' 与 git 已知的任何文件都不匹配。错误:pathspec '=' 与 git 已知的任何文件都不匹配。错误:pathspec 'amturrietta' 与 git 已知的任何文件都不匹配。
-
@Ashley,我猜是
--amend --author="Ashley Turrieta"