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 '[email protected]' 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 [email protected]
git log --name-only --author="[email protected]"
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
CodePudding user response:
git log --all --pretty="%h