gitswitch
Keep Git and GitHub identities correct for every repo.
Is this your product? Claim it to edit the listing, post updates and answer questions. Prove it with an email address at the product's domain (the listing becomes Claimed), or put the LotsDirectory badge on your website (the listing becomes Verified, and its link to your website is followed while the badge is live).
Description
Keep Git and GitHub identities correct for every repo. Run work, personal, and coding-agent sessions in parallel with gitswitch, the open-source Go CLI.
About gitswitch
What is gitswitch?
gitswitch is an open source Go CLI that keeps Git and GitHub identities aligned with the repo.
What gitswitch does
The tool aligns commit author details, GitHub CLI accounts, SSH keys, and signing identities with the active repo. Developers run work, personal, and AI coding agent sessions in parallel without switching shared global configurations. The CLI stays local without servers or telemetry, with keys in SSH and tokens in the OS keychain.
Who gitswitch is for
For developers, engineers, and teams managing multiple Git identities, clients, and GitHub accounts on one machine.
How gitswitch works
Users install the CLI via Homebrew or curl, connect GitHub accounts, and pin specific profiles to repos with a single command.
Key features
- Pins identities to individual repos so commits and pushes always use the designated account.
- Isolates GitHub CLI sessions across terminals so concurrent sessions operate without account collisions.
- Selects matching SSH keys and GPG or SSH signing identities for each active profile.
- Includes a reauthor command to rewrite author and committer metadata on existing commits.
- Runs locally as a router without telemetry or credential proxies, keeping tokens in the OS keychain.
- Open source under the Apache-2.0 license for macOS, Linux, and Windows.
Facts from gitswitch.dev, checked 13 October 2026
- Written in Go and licensed under Apache-2.0.
- Supports macOS, Linux, and Windows platforms.
- Tokens stay local in the OS keychain.
Written from gitswitch's own website (Homepage, Docs). The maker can claim this listing to edit it.
Categories
Frequently asked questions
Is gitswitch open source?
Yes. It is written in Go and licensed under the Apache-2.0 license.
Does gitswitch replace GitHub CLI?
No. It adds repo-aware identity and session management around existing Git and GitHub CLI workflows.
Where are credentials and SSH keys stored?
Keys remain in SSH and tokens stay in the OS keychain with no telemetry or remote proxies.
Can gitswitch fix commits made under the wrong identity?
Yes. The reauthor command rewrites author and committer metadata on existing commits.