I'm pushing a large repo into another on Azure DevOps Repos and I'm getting error because one repo policy only allows author with @abc.com pattern for email.
The push was rejected because one or more commits contain author email 'user1@xyz.com' which does not match the policy-specified patterns
When I run the git command below on my window PC I can see the precise check-in from this user1@xyz.com
git log --name-only --author="user1@xyz.com"
How can I run the git log command to find all commits that are not @abc.com? is there a built in command in git?
My un-successful attempts so far using regex:
git log --name-only --author='@(?!abc\.com)([^.]+\.)+com$' --perl-regexp
git log --name-only --author='^((?!*)abc\.com)$' --perl-regexp