2025-01-02 TIL: Managing Multiple GitHub Accounts & The Chinese Zodiac

2025-01-02 TIL: Managing Multiple GitHub Accounts & The Chinese Zodiac

💻

Multiple GitHub Accounts & SSH Config

When using two GitHub accounts (personal and work) on the same computer, you can manage them with SSH keys and host aliases in your SSH config file:

  1. Edit/Create SSH Config (~/.ssh/config) to Define Host Aliases:
# Default GitHub account: work
Host github.com
   HostName github.com
   IdentityFile ~/.ssh/work_private_key
   IdentitiesOnly yes

# Other GitHub account: personal
Host github-personal
   HostName github.com
   IdentityFile ~/.ssh/personal_private_key
   IdentitiesOnly yes
  1. Use Host Alias in Git Commands: git clone git@github-personal:org/project.git. This ensures the correct SSH key and user are applied based on the alias.

🌱

Chinese Zodiac

The Chinese zodiac is a twelve-year cycle, where each year is represented by an animal with unique characteristics. This system remains a cultural cornerstone in Chinese tradition, influencing personality beliefs, compatibility, and even significant life decisions.

  • It originated during the Han Dynasty as part of a traditional timekeeping system.
  • The twelve zodiac animals are: Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Goat, Monkey, Rooster, Dog, and Pig.
  • According to legend, the Jade Emperor held a contest to determine which animals would be included in the zodiac calendar.
Puran Zhang @puran