gitazure-devopsgit-commitazure-repos

ADo repository: The push was rejected because commits contain author email which does not match the policy-specified patterns


I'm trying to push commits from my GitHub repository to an ADO repository. The commits in GitHub repository are added by myself and some other authors. On pushing commits to my remote branch in ADO repository, I see this error:

VS403702: The push was rejected because one or more commits contain author email 'xyz@users.noreply.github.com' which does not match the policy-specified patterns.

Is there a way to fix this issue?


Solution

  • You can go to Project Settings -> Repositories -> Select the repository that you want to push -> Policies -> Repository Policies/Commit author email validation to check whether its settings conflict with your email address.

    The settings may be inherited from the project. Go to Project Settings -> Repositories -> Policies -> Repository Policies/Commit author email validation to see the settings for the entire project.

    {picture}