Last updated
Auto-switch the active gh account before HTTPS git remote operations, with a Ratatui config editor.
$ winget install --id pbrouillet.gh-autoswitch --exact --version 1.1.2Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
For Intune admins
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialNo credit card required.
gh-autoswitch is a cross-platform Rust binary that acts as a git credential helper to automatically run `gh auth switch` to the right GitHub account before every HTTPS git remote operation (push, pull, fetch, clone), based on the remote owner/org. It also ships a Ratatui TUI to scaffold and edit its YAML config and to detect the path to gh.
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
No known CVEs for gh-autoswitch.
Coverage is best-effort and depends on a winget package mapping to an NVD CPE entry. Absence here is not a guarantee of safety.
More from pbrouillet or browse git, github, gh.