Persistent issue with Github commit author not recognized

Hi,

I linked a repository in Github to a Vercel project and deployments on the main branch are working fine. However, whenever I commit to a branch and create a PR I get the following error:

No GitHub account was found matching the commit author email address

The repository I’m working on belongs to one user of mine ( shaharke (Shahar Kedar) · GitHub ) with a different email address used for my Vercel account (k****2026@gmail.com). I’ve tried setting the git user.email to the email associated with my Vercel account. I also created a dedicated Github account for that user. Nothing helps. I keep getting this error every time I create a PR.

I’ve transferred the repository to the account that matches my Vercel account and still I get the same error

Hi Kedar,

Changing git user.email only affects new commits. It will not change the author email on commits that already exist in the PR branch, so Vercel may still be seeing the old commit author.

I’d check the actual author email on the branch first:

git log --format='%h %an <%ae>' origin/main..HEAD

Every commit listed there should use an email that belongs to the GitHub account connected to the Vercel account/team that owns the project. Also make sure that email is added and verified in GitHub, not only set locally in Git.

If the PR branch has old commits with the wrong author email, create a new commit after fixing the email, or rewrite the branch commits and force-push:

git config user.email "the-email-on-your-github-account@example.com"
git commit --amend --reset-author
git push --force-with-lease

For multiple commits, you may need an interactive rebase and amend each commit author.

In Vercel, I’d also check Account Settings → Login Connections and confirm the same GitHub account is connected. Vercel’s docs mention that deployments are matched through the Git provider connection and commit author, so transferring the repo alone may not fix it if the commit author email on the PR commits still points somewhere else:
https://vercel.com/docs/deployments/troubleshoot-project-collaboration

Can you run the git log command above and check whether the PR commits still show the old email?