Git 如何在另一个用户下推送到远程回购

Git 如何在另一个用户下推送到远程回购,git,github,Git,Github,我在另一位作者下检查有关提交的问题 如何在另一个登录下推送远程回购。我有: git commit --author="notMe" -m "whatever" git push https://<remote-repo> Username for 'https://github.com': notMe Password for 'https://qRoman@github.com': <notMe's password> git commit--author=“notM

我在另一位作者下检查有关提交的问题
如何在另一个登录下推送远程回购。我有:

git commit --author="notMe" -m "whatever"
git push https://<remote-repo>
Username for 'https://github.com': notMe
Password for 'https://qRoman@github.com': <notMe's password>
git commit--author=“notMe”-m“随便”
git推送https://
'的用户名https://github.com’:不是我

'的密码https://qRoman@github.com':您作为作者“notMe”创建了提交,但使用该repo的当前用户(即Alendorff)推送。 您可以通过以下方式更改该回购协议的用户:

git config user.name "Billy Everyteen"
您还可以通过以下方式检查当前用户的回购:

git config user.name

更多信息可以找到

您需要指定提交人的姓名和电子邮件,以完全消除您当前帐户的痕迹。

“但是使用默认用户推送”——这意味着什么?默认用户,我指的是当前为该回购设置的用户(即阿伦多夫),如果您再次检查该问题,您将看到,该OP专门为推送操作放置了另一个用户的凭据。您是否以“名称”格式指定了“作者”?否,仅为问题中指定的名称。很快将尝试使用电子邮件。“为什么我的头像仍然在这里?”——因为您的电子邮件仍然在那里。检查变更集详细信息。@zerkms,是的,你是对的。