Edit file
~/.ssh/config
Host hari.github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
Host private.github.com
HostName github.com
User git
IdentityFile ~/.ssh/private
and update git repository remote url hostname to
for hari.github.com
git@github.com:hardikhari96/service-worker-with-nodejs.git
to
git@hari.github.com:hardikhari96/service-worker-with-nodejs.git
and
for private.github.com
git@github.com:hardikhari96/service-worker-with-nodejs.git
to
git@private.github.com:hardikhari96/service-worker-with-nodejs.git
Manage Different account in single gitRemote host service with multiple private key