GitHub recommends using a single account to manage both personal and professional repositories. You can [merge multiple accounts](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/merging-multiple-personal-accounts). When I left my last employer I transferred repositories from my personal account (which I had neglected) to my professional account. Then I changed the user name and email of my personal account (rather than delete the account as recommended by GitHub) and quickly renamed my professional repository to the name of my personal repository and updated the email associated with it to my personal email. I can delete the old account later if I want, but this way it is still around in case I messed up anything in the transfer. Any [[GitHub pages]] sites will be republished under the new user. If this doesn't happen for any reason, check the repo's Settings > Pages page. Note that GitHub will not redirect old links to the new site, so you'll need to make sure any site visitors have the new address. If you do choose to use two accounts, for example a work/school and a personal account, see below to set up SSH for both on one computer (and also see [this guidance](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/managing-multiple-accounts)). - [[Set up SSH in GitHub]] for both accounts. Be sure not to override the existing key if you've already set one up. - Create a config file (in the `.ssh` directory in your user directory) and open it with VS Code. ```bash touch ~/.ssh/config code ~.ssh/config ``` - Update the config file with the following text. Change the path to each `IdentityFile` if needed. ``` #Default GitHub Host github.com HostName github.com User git IdentityFile ~/.ssh/id_rsa Host github.com-work HostName github.com User git IdentityFile ~/.ssh/id_rsa_work ``` - Save the file and exit. To use the second identity, replace `[email protected]` with the custom host specified in the config file when you add the remote ( `[email protected]`). ```bash git remote add origin [email protected]:<repo> git push -u origin main --tags ``` You will need to do this each time you set up a repository for your second account. If needed, [[update existing repository remotes]].