Example of how to setup a 2nd ssh credential file, to work with a 2nd github account from one machine.
For example if you have one account for your job, and another personal one.
#> git config core.sshCommand "ssh -i ~/.ssh/yournewkeyfile -o IdentitiesOnly=yes"
Edit your .git/config [remote "origin"] from
url = https://github.com/nigelprimex/workrepo.git
to:
url = [email protected]:nigelprimex/workrepo.git
#> git remote add origin [email protected]:nigelprimex/workrepo.git