Interview practice question
Commits show the wrong author
Cloud & DevOps · Git and Version Control · Intermediate
Several commits in your repository show a personal email or an unknown user as author, and the platform doesn't link them to your account. How do you fix this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Configure correct user.email (per repo/global).
- Add email to platform account.
- Rewrite unpushed commits (amend, rebase --exec).
- Avoid rewriting shared history.
- .mailmap for display mapping.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.