我想更改我的本地git用户名(bitbucket)。我已使用以下命令更改提交的用户名:
$ git config --global user.name“John Doe”......
它适用于提交,但对于pull请求,先前的用户名再次出现。
对于最后一次提交,修改提交:
git commit --amend --reset-author
对于早期的提交,使用hash进行rebase:
git rebase -i COMMIT_HASH
# and follow the interactive rebase