Skip to content

Instantly share code, notes, and snippets.

View wardpeet's full-sized avatar

Ward Peeters wardpeet

  • Coding-Tech
  • Belgium > Antwerp > Lier > Hulshout
  • 11:05 (UTC +02:00)
  • X @wardpeet
View GitHub Profile

Multiple GitHub accounts (Work vs Personal)

This setup uses some tricks to ensure that the right email/name/ssh-key is used for the right repos without having to think about it ever again.

  • First generate two SSH keys, ~/.ssh/id_ed25519 and ~/.ssh/id_ed25519_work
  • Add one key to your personal account and the other to your work account

.ssh/config