我从Change the author and committer name and e-mail of multiple commits in Git 中看到了如何在我的提交中更改我的电子邮件;但是,当我尝试推送它时,出现此错误:
$ git push production master
To git@<remote_server>
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@<remote_server>
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
所以然后我尝试在远程仓库中执行 commit-email-changeing-command 它向我展示了You need to run this command from the toplevel of the working tree.