Tecadmin published a tutorial about setting up a machine with GitHub and multiple accounts.
How to Setup Machine with GitHub and Multiple Accounts
Being a software developer or system administrator, you may have need to work with multiple Git repositories from the differnet-2 account. For example, you may have multiple Github accounts, Gitlab, Bitbucket or AWS Codecommit accounts for the projects. If you are using http/https protocol to access git repositories, may face issues with the authentication.
How to Setup Machine with GitHub and Multiple Accounts