删除< user>与< user>一起提交在Github上 [英] Removing <user> committed with <user> on Github
本文介绍了删除< user>与< user>一起提交在Github上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在github上有一些提交,看起来像这样:
I have a number of commits on github that look like this:
是否有重新绑定的方法,以便我可以摆脱这种情况,并简单地将提交标记为我?
Is there a way of rebasing so that I can get rid of this and simply have the commit marked as by me?
推荐答案
首先,我会检查你的git是否配置了正确的用户信息。运行 git config --list
来验证一切正确。
First I would check that your git is configured with the correct user information. Run git config --list
to verify that everything is correct.
您也可以尝试使用交互式重新绑定编辑提交。
You can also try playing with interactive rebasing to edit a commit.
- 输入交互式重新分页
git rebase -i< commit ID>
- 将要更改的提交更改为
编辑
,保存并退出 - 重新建立使用不同的作者
git commit --amend --author =作者姓名< email@address.com>
- Enter interactive rebase
git rebase -i <commit ID>
- Change the commit you want to change to
edit
, save and exit - Recommit with a different author
git commit --amend --author="Author Name <email@address.com>
这篇关于删除< user>与< user>一起提交在Github上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文