如何摆脱提交?

时间:2017-12-01 16:23:35

标签: git atlassian-sourcetree

以下工作更新了作者/电子邮件等。但是,它留下了原始初始提交的分离提交(图像中的红色)。我怎么能摆脱它?

git filter-branch --commit-filter \
'\
export GIT_AUTHOR_NAME=userid;\
export GIT_AUTHOR_EMAIL=useremail;\
export GIT_COMMITTER_NAME=userid;\
export GIT_COMMITTER_EMAIL=useremail;\
git commit-tree "$@"'

enter image description here

1 个答案:

答案 0 :(得分:0)

以下是如何获得我所期望的方式。在SourceTree中,转到Repository - > Repository Settings ... - > Remotes - > Remote repository paths - >删除了Remote repository paths下的所有条目。不好的是我必须再次添加远程URL / Path。

相关问题