I made a commit with the wrong email "email@gmail.com" and when I tried to push the commit, It failed for the following reason
remote: GitLab: Committer's email 'email@gmail.com' does not follow the pattern '@company.fr$'
To gitlab.com:xxxxxx.git ! [remote rejected] xxxx -> xxxx (pre-receive hook declined)
error: failed to push some refs to 'xxxxx'
I forced a changed in the commit's email with the command:
git commit --amend --reset-author
I forced the change in the email address to the right address "email@company.fr" and the logs show that the change has been effective
But when I try to push (with --force) the commit, I still have to same error above.
If you have any idea why it doesn't work and how I can force it, I would gladly welcome it
Thank you