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
[email protected]:hardikhari96/service-worker-with-nodejs.git
to
[email protected]:hardikhari96/service-worker-with-nodejs.git
and
for private.github.com
[email protected]:hardikhari96/service-worker-with-nodejs.git
to
[email protected]:hardikhari96/service-worker-with-nodejs.git
Manage Different account in single gitRemote host service with multiple private key