This tutorial will guide you through setting up multiple GitHub accounts on the same machine. We'll use a personal account as the primary account and a work account as the secondary account.
Suppose you have two GitHub accounts:
https://github.com/fvena-personal
(personal - will be configured as primary)https://github.com/fvena-office
(work - will be configured as secondary)
You can extend this logic to any number of accounts. The setup involves generating separate SSH keys, configuring your SSH client, and setting per‑repository user information.