When a GitHub user account is deleted, any commits that account made will be attributed to the Ghost
user. If those commits were made by you using a different account, you can simply add that email address that was associated with the previous account to your current account. Any commits made using that email address will then be attributed to your account.
Another more complicated option would be to rewrite the commit history for all of those commits, then force push those changes to the repository. Here are the instructions for doing that.
Note: Running this script rewrites history for all repository collaborators. After completing these steps, any person with forks or clones must fetch the rewritten history and rebase any local changes into the rewritten history.
1 - Before running this script, you'll need:
- The old email address that appears in the author/committer fields that you want to change
- The correct name and email address that you would like such commits to be attributed to