Sometimes it is hard to manage multiple GitHub accounts and deal with conflicts when cloning and pushing code. For example, if we have three accounts, we can follow these steps:
Example:
ssh-keygen -t ed25519 -C "personal@email.com" -f ~/.ssh/github_personal
ssh-keygen -t ed25519 -C "work@email.com" -f ~/.ssh/github_work
ssh-keygen -t ed25519 -C "school@email.com" -f ~/.ssh/github_school
You will get:
~/.ssh/github_personal
~/.ssh/github_personal.pub
~/.ssh/github_work
~/.ssh/github_work.pub
~/.ssh/github_school
~/.ssh/github_school.pub
Upload each .pub key to the correct GitHub account.