If you are a developer, then you must be using git. And there are chances that you might have faced the problem of using different git accounts for each git repository. How do we switch users each time we clone a new repository.

One of the solutions is to change the repository username config using the below command

git config user.name "youremail@email.com"

But you have to do this for every new repository. Fortunately, there’s a better solution of setting multiple accounts in ssh config. Below are the steps to do that.

#git #efficiency #version-control #gitlab #github

How to use multiple git accounts
1.20 GEEK