create different ssh key:
$ ssh-keygen -t rsa -C "your_email@youremail.com"
for example, 2 keys created at:
~/.ssh/id_rsa_activehacker
~/.ssh/id_rsa_jexchan
add the public key to github account: https://github.com/settings/keys
start ssh-agent in the background eval $(ssh-agent -s)
then, add these two keys as following
$ ssh-add ~/.ssh/id_rsa_activehacker
$ ssh-add ~/.ssh/id_rsa_jexchan
finally, you can check your saved keys
$ ssh-add -l
$ code ~/.ssh/config
Then added
#activehacker account
Host github.com-activehacker
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_activehacker
#jexchan account
Host github.com-jexchan
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_jexchan
clone your repo git clone git@github.com:activehacker/gfs.git gfs_jexchan
cd gfs_jexchan and modify .git/config
[user]
name = activehacker
email = your_email@youremail.com
[remote "origin"]
url = git@github.com:activehacker/gfs.git
Ref: https://help.github.com/en/articles/connecting-to-github-with-ssh