I am trying to change the author name of last commit.
As mentioned in Change commit author at one specific commit, I am executing git commit --amend --author="Author Name <email@address.com>"
command.
In my git log I can see that name and email have been changed.
But when I am executing git push -f
, it is giving me following error
remote: To prevent you from losing history, non-fast-forward updates were rejected.
! [remote rejected] dev -> dev (pre-receive hook declined)
Any idea how can i push this.
Thanks,
Shantanu