Many a times you need to work with two different Github Accounts. If you are using macOs or windows, they save your account information and don’t give permissions to operate other accounts.
In order to run git commands for two different github accounts you need to follow the following step by step procedure.
Generating SSH Key for the account
Copy your SSH key using the command given below
Now you need to add this key in your Github Account
Repeat the above steps for the second github account.
Setup Github Host