在 GitHub 和 Pycharm 上更改提交作者

问题描述 投票:0回答:1

我最近开始在一个项目中使用 Pycharm。我已经链接了我的 GitHub 帐户,这样我就可以直接在我的存储库中提交。然而,提交的作者姓名不是我在 GitHub 上的用户名。

我在 Pycharm 中使用了

git config --global user.name "New Name"
,所以现在作者已正确设置,但是如何更改合并分支上的作者姓名?特别是当我有这样的事情时:

Branches example, merged commits

我也尝试了

git rebase -i -p [commit hash]
遵循这个教程,但我得到了
fatal: --preserve-merges was replaced by --rebase-merges Note: Your 'pull.rebase' configuration may also be set to 'preserve', which is no longer supported; use 'merges' instead

git github pycharm commit git-merge
1个回答
0
投票

使用

git rebase --interactive --rebase-merges
或仅使用
git rebase --interactive
(并且始终在手册中使用长命令行选项,以便人们可以理解他们在做什么以及为什么)

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.