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-changing-commandを実行しようとすると、表示されますYou need to run this command from the toplevel of the working tree.