Skip to content

Instantly share code, notes, and snippets.

View MinhHieu-Nguyen-dn's full-sized avatar

Minh Hieu Nguyen MinhHieu-Nguyen-dn

View GitHub Profile
@MinhHieu-Nguyen-dn
MinhHieu-Nguyen-dn / ubuntu-work-with-multiple-github-accounts.md
Last active July 5, 2025 14:54
(Ubuntu version) How To Work With Multiple Github Accounts on a single Machine

(Ubuntu version) How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/nmhieu-office and https://github.com/nmhieu-personal. Now i want to setup my Ubuntu machine to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 6 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Starting and Configuring the SSH Agent
@MinhHieu-Nguyen-dn
MinhHieu-Nguyen-dn / work-with-multiple-github-accounts.md
Last active July 13, 2025 16:06 — forked from rahularity/work-with-multiple-github-accounts.md
[Windows Git] How To Work With Multiple Github Accounts on your Windows PC

(Windows version) How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/nmhieu-office and https://github.com/nmhieu-personal. Now i want to setup my Windows laptop to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :) This can be used with either PowerShell or Command Prompt (cmd).

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts