更改bitbucket pull请求用户名

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

我想更改我的本地git用户名(bitbucket)。我已使用以下命令更改提交的用户名:

$ git config --global user.name“John Doe”......

它适用于提交,但对于pull请求,先前的用户名再次出现。

git bitbucket config username pull-request
1个回答
1
投票

对于最后一次提交,修改提交:

git commit --amend --reset-author

对于早期的提交,使用hash进行rebase:

git rebase -i COMMIT_HASH
# and follow the interactive rebase
© www.soinside.com 2019 - 2024. All rights reserved.