DEV Community

Cover image for Two github accounts one laptop

Two github accounts one laptop

Sumit Roy on June 02, 2019

Problem Statement A unique problem arises when my personal laptop left this world and even after lots of software and hardware fixes, I ...
Collapse
 
m0ntassar profile image
Montassar JDIDI • Edited

It will also be a good idea to create a new user on your laptop for personal projects.
I do that since I have many long-term contracts with different customers, keeping a customer data and config in a dedicated user account helps a lot

Collapse
 
sroy8091 profile image
Sumit Roy

Yes, but you can't add one ssh key in two different github account. That was problem I am giving the solution of.

Collapse
 
ltvan profile image
Van Ly

You can use git config per repository for username.

Collapse
 
nirajdewangan profile image
Niraj Kumar Dewangan

Thank you the beautiful content.

How to push the code to different repository?
I am new to git.

Collapse
 
pallabganguly profile image
Pallab Ganguly

This literally made my day today :D