Migrating GitHub Activity: Preserving Your `git metrics` Across Accounts

Navigating career transitions often brings unexpected challenges, and managing your digital developer identity on platforms like GitHub is no exception. A recent discussion in the GitHub Community highlights a common dilemma: how to consolidate your valuable commit history and subscriptions when moving from a work-affiliated account to a personal one, especially after losing access to a work email.

Transferring GitHub commit history and repositories between accounts.
Transferring GitHub commit history and repositories between accounts.

The Challenge: Merging GitHub Identities and Preserving Your `git metrics`

Our community member, charecktowa, faced this exact situation. Laid off and needing to transition from a work-email-linked GitHub account (where all their PRs were made) to a personal account with an active GitHub Student Pack and Copilot subscription, the core question was clear: "Is there a way to merge the activity without closing my personal account or losing my current subscriptions?" The goal was to preserve a complete record of their contributions—their personal `git metrics`—for future job applications.

The general consensus from the community is that GitHub does not officially support merging two distinct accounts or directly combining their contribution histories. Contributions are fundamentally tied to the email address used in the commits. However, resourceful solutions exist to effectively achieve this consolidation.

Analyzing personal git metrics and developer contributions on GitHub.
Analyzing personal git metrics and developer contributions on GitHub.

Strategic Solutions for Consolidating Your GitHub Presence

1. Moving Commit History ("The Green Squares" and Your `git metrics`)

The good news is that your precious commit history, often visualized as "green squares" on your profile, can largely be transferred. GitHub attributes commits to whichever account currently has the email address used to author those commits verified on it. RakshitKaintura provided a clear two-step process:

  • Step A: Log into your old account (if accessible) and remove the email address associated with your previous commits. You might need to add a temporary dummy email first to ensure the account always has a primary email.
  • Step B: Log into your new, personal account and add that same email address under your
    Settings > Emails
    .

The Result: Once this email address is verified on your personal account, all historical commits made with that email will automatically appear on your new profile's contribution graph, effectively migrating your `git metrics` for those contributions.

2. Migrating Repositories

Beyond the commit history, you'll likely want to move the actual code, issues, and pull requests associated with specific repositories. GitHub offers a straightforward transfer mechanism:

  • Go to the
    Settings
    of each repository on your old account.
  • Scroll down to the
    Danger Zone
    and select
    Transfer
    .
  • Enter the username of your new account.
  • Log into your new account and accept the transfer via the notification or email.

This process ensures that the repository, along with its full history, issues, and PRs, becomes part of your new account.

3. Handling the GitHub Student Developer Pack and Subscriptions

This is often the trickiest part, as GitHub does not officially support transferring Student Pack benefits between accounts. However, there are two primary approaches:

  • If you still have access to the old account: The most seamless way is to rename the old account (the one that already has the Pack) to your preferred new username and then add your new personal email addresses to it. This effectively "makes" the old account your new primary one, retaining all benefits and history.
  • If you must use a brand new account: You will need to contact GitHub Support and ask them to revoke the Student Pack from your old account. Once revoked, you can then re-apply for the Pack on your new account using your school email and student ID. This might involve a temporary loss of benefits until the re-application is approved.

Maintaining Your Developer Identity

While GitHub doesn't offer a single "merge account" button, these community-driven solutions provide a robust path to consolidate your developer identity. By carefully migrating your commit history, repositories, and managing your subscriptions, you can ensure that your valuable `git metrics` and professional contributions are accurately reflected on your primary GitHub profile, a crucial step when showcasing your experience to potential employers. For situations where full migration isn't feasible, remember ChHussain's advice: keep the old account as an archive and clarify your contributions across accounts on your resume or portfolio.

|

Dashboards, alerts, and review-ready summaries built on your GitHub activity.

 Install GitHub App to Start
Dashboard with engineering activity trends