如何摆脱提交?

How to get rid of a commit?

以下内容用于更新 author/email 等。但是,它留下了一个分离的提交(图像中的红色),这是原始的初始提交。我怎样才能摆脱它?

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 "$@"'

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