Sign inSign up free

772. One Person, Five Identities in the History

easy 10 XP ~6 minHands-on lab

git shortlog -sne on /home/student/repos/docs-site lists the same people several times: they committed from different machines with different names and e-mail addresses. The yearly contributor report must count each person once.

Task

Add and commit a .mailmap file on main so that git shortlog -sne shows exactly three contributors for the existing history:

  • Priya Raman <priya@acme.dev> (also committed as priya, P. Raman and from praman@old-company.com),
  • Lucas Moreau <lucas@acme.dev> (also committed as lucas@laptop.local),
  • Dev Bot <devbot@acme.dev> (unchanged).

Don't rewrite any commits.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of Git Essentials. Next step: A Clone With Empty Submodule Folders

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.