我在另一个作者下检查了这个关于提交的问题 git commit as different user without email / or only email
我怎样才能在另一个登录名下推送到远程仓库。我愿意:
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>
但结果我得到了这个: 我怎样才能像其他作者一样提交和推送?
UPD: 我尝试了 git config user.name "notMe"
结果是:
这几乎是我想要的,但为什么我的头像还在这里?
最佳答案
您需要指定提交作者的姓名和电子邮件,以完全消除您当前帐户的痕迹。
关于git - 如何推送到另一个用户下的远程仓库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29047116/