本文へスキップ
Kitbay
掲載依頼
スキル

github-multi-account

MITスクリプトあり

A PowerShell skill for developers who use two GitHub accounts, typically a work Enterprise Managed Users account and a personal one.

スキルの内容

A PowerShell skill for developers who use two GitHub accounts, typically a work Enterprise Managed Users account and a personal one. It installs a function that sits in front of the gh CLI, reads the current repository's git remote, and points gh at a separate configuration folder for the matching account. Helpers check and repair expired tokens, and a git credential helper setting makes pushes use the same account. The folder ships a setup script and the proxy script. The published routing table holds the author's own account names and mentions his Ralph automation, so it has to be edited before anyone else can use it.

できること

  • Route gh commands to the right GitHub account by git remote
  • Check and repair expired gh tokens
  • Make git push and pull use the matching account