github-multi-account

Configure GitHub multi-account aliases and wrappers for personal and work profiles.

Updated Nov 27, 2024
One-click install
npx skills add https://github.com/Izak90/Izak90.github.io --skill github-multi-account-izak90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-multi-account
Source: https://github.com/Izak90/Izak90.github.io/tree/main/isaac_treinos_ar_livre/.copilot/skills/github-multi-account
Command: npx skills add https://github.com/Izak90/Izak90.github.io --skill github-multi-account-izak90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect and set up aliases for multiple GitHub accounts to streamline switching between personal and work profiles.

Core Features & Use Cases

  • Automatically detect multiple GitHub accounts using gh auth status.
  • Create per-account aliases and wrappers (ghp/ghw) to switch between accounts seamlessly.
  • Ensure shell/profile updates and PATH adjustments are applied consistently across sessions.

Quick Start

Run gh auth status to identify accounts, then specify which is personal and which is work to complete the setup.

Frequently Asked Questions about github-multi-account

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch between personal and work GitHub accounts using gh-cli?

Switching GitHub accounts involves detecting active profiles via gh auth status and configuring shell aliases like ghp and ghw. This Skill updates your profile and PATH to seamlessly toggle between personal and work identities.

What is the best way to manage multiple GitHub accounts in a shell environment?

Managing multiple GitHub accounts requires automated shell-script wrappers and identity-switch aliases. This approach applies consistent environment PATH modifications and profile updates across sessions to prevent credential conflicts.

Do I need to manually edit my shell profile to set up GitHub multi-account aliases?

No, manual shell profile edits are unnecessary for GitHub multi-account aliases. The setup automates profile updates, creates wrappers, and modifies the PATH, followed by verification commands.

Can I use this GitHub identity-switch setup if I have more than two accounts?

The GitHub identity-switch setup applies when two or more accounts are detected by gh auth status. You designate which is personal and which is work to generate the specific ghp and ghw wrappers.

Why does my GitHub multi-account configuration not persist across terminal sessions?

GitHub multi-account configurations fail to persist when shell profile updates and PATH adjustments are missing. This setup ensures consistent application of these environment modifications across all new terminal sessions.