How to Manage Multiple GitHub/GitLab/Bitbucket Accounts Using SSH Keys
If you’ve used the Git command-line utility, you may have noticed that Git often needs user credentials to perform operations over HTTP, especially when the repository is private. It is possible to permanently store user credentials in Git credential storage to avoid entering them again and again, but this approach won’t work if you have to work on a remote repository which exists on another account. This gets even more complicated for systems with two-factor authentication, where the token you use for a password is randomly generated and unpronounceable.
Published on 22nd June 2020