← All guides

Pair Extraordinaire

πŸ‘― Pair Extraordinaire

Goal: Have a co-authored commit land in a merged pull request.

Difficulty Time Tiers
🟒 Easy ~10 min 1 β†’ πŸ₯‰ 10 β†’ πŸ₯ˆ 24 β†’ πŸ₯‡ 48 co-authored PRs

βœ… What counts

  • A commit with a Co-authored-by: trailer, included in a merged PR.
  • The co-author must be a real GitHub account (matched by email).

πŸͺœ Step-by-step

  1. Find the co-author’s GitHub email. Two safe options:
    • Their noreply email: ID+username@users.noreply.github.com (find the numeric ID at https://api.github.com/users/<username>), or
    • Any verified email on their account.
  2. Make a commit with the co-author trailer. πŸ‘‡ The blank line before Co-authored-by is required:
    git commit -m "feat: add feature
    
    Co-authored-by: NAME <ID+username@users.noreply.github.com>"
    
  3. Push the branch, open a Pull Request, and merge it. πŸ”€βœ…

  4. GitHub shows both avatars on the commit β€” badge unlocked! πŸŽ‰

πŸ’‘ Tips

  • Add multiple Co-authored-by: lines to credit more people (each on its own line).
  • Pair with a friend for real β€” genuinely the nicest way to earn this.

⏳ When it appears

Minutes to a couple of hours after the merge.