If you are using separate GitHub accounts to help manage different silos of work (personal, work, etc), you can use a combination of directory structure and .gitconfig files to manage your commit authorship details and SSH keys.
Ensure that you have already created/added SSH keys to ssh-agent and have added them to your corresponding GitHub accounts.
Other guides on this problem encourage modifying your ~/.ssh/config
file to use a different SSH key