Setup Multiple GitHub Accounts from a Single Machine
Setting up a second GitHub Account Assuming that you already a git account setup on a machine and you are looking to set up a second one to help you manage your work and personal git accounts from a single machine. You might be already aware that you git SSH key is stored in a .ssh folder under your home directory. Navigate to this directory and type "ls" to check this. cd ~/.ssh ls Next, we need to create a new SSH key using your second git email address and give it a name other than the default "id_rsa", as by this name you will already have your first git account setup. In my case, I am naming it as "id_rsa_personal" ssh-keygen -t rsa -C "automationbynishant@gmail.com" -f "id_rsa_personal" Again type "ls" and check if the new RSA public and the private key are created. ls Run eval on ssh-agent which will check if ssh-agent is running and will start it if its not already running. Next, add this new SS...