Skip to content

Instantly share code, notes, and snippets.

View txj-xyz's full-sized avatar
😁
probably coding

txj-xyz txj-xyz

😁
probably coding
View GitHub Profile
@txj-xyz
txj-xyz / TXJComputerSpecs2018.md
Last active July 28, 2018 17:28
Computer Specs 2018
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active August 20, 2025 10:50
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.