Use multiple Git accounts from a single Linux machine

As developers, you must have used git & git based platforms like GitHub, GitLab, Bitbucket, etc. on a daily basis. Let's say you have your personal GitHub & GitLab accounts associated with your personal email id. Now, you join a company where you have been given a new official email id & you have to create new GitHub & GitLab account with that email id. Assume you have the following active accounts: ( ( ( ( You can clearly not use a single SSH key for accessing all your repositories. Also in global .gitconfig file you can't create two user tags for both the email ids. How to manage multiple SSH keys in Git Configs then? Option 1 (meh!) Create two users in your OS, one for Personal use & other for your Company. Switch your profile accordingly and (more) »