gh-autoswitch

pbrouillet·pbrouillet.gh-autoswitch

Auto-switch the active gh account before HTTPS git remote operations, with a Ratatui config editor.

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.

winget install --id pbrouillet.gh-autoswitch --exact --source winget

Latest 1.1.2

Installer type: zip

x64910A607E5BC5F0C89484C886AD5D10E7DCA1C53DAF4AC49CA2867AE1CF9410C0
arm64A342F81614FB1BA49D58890B5EDA350AAC19737E46A88311358C071DD9ACD555

Details

Homepage
https://github.com/pbrouillet/gh-autoswitch
License
MIT
Publisher
pbrouillet
Support
https://github.com/pbrouillet/gh-autoswitch/issues
Moniker
gh-autoswitch

Tags

gitgithubghclicredential-helperrust