Skip to content

Instantly share code, notes, and snippets.

View KuoYuChang's full-sized avatar

KuoYuChang

View GitHub Profile
@KuoYuChang
KuoYuChang / contents.md
Last active November 14, 2025 10:11
Contents

Contents of articles

Helps to find interested articles quickly

Set Github with SSH

see the post

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.