Command-line identity switching for multiple Git accounts
Switch Git identities between work, personal, and open-source repos from the command line, swapping name, email, and credentials with a single command. git-swap, created by Joko Triyanto (jokot), suits developers who juggle multiple accounts on one machine. The tool supports multiple hosting services and uses profile-based identity management, letting developers replace manual .gitconfig edits with scripted profile swaps that keep commit attribution consistent across projects.
What does git-swap actually do?
git-swap replaces manual edits to Git configuration by applying a selected profile containing name, email, and credentials to your repository from the command line. The utility is hub-agnostic and can handle identities for GitHub, GitLab, Bitbucket, and other Git hosts, so a single profile command updates the local identity used for subsequent commits rather than requiring per-repo manual changes. This targets the common need to keep professional and personal commits distinct.
How does it affect system resources during operation?
The tool is a Go-based executable with a lightweight, single-purpose CLI design, which keeps runtime overhead low. Because it performs quick configuration writes rather than long-running background processes, it does not hold persistent CPU or RAM usage. The small operational footprint makes it suitable for running on a development desktop without interfering with IDEs or build tasks.
Is it safe to use on an active development machine?
git-swap reduces the chance of committing under the wrong identity by automating profile application, so the risk comes from executing the wrong profile rather than hidden modifications. The workflow writes Git configuration values directly, which is an explicit change; users should verify the selected profile before committing to avoid incorrect attribution. The design is focused on controlled, deliberate swaps instead of opaque automation.
Do I need technical knowledge to operate it correctly?
The command-line interface assumes familiarity with terminal workflows and Git concepts such as local config and commit authorship. That makes it appropriate for developers, consultants, and contributors who already use the terminal; less technical users may find the lack of a graphical interface a barrier. The developer aimed for a minimal tool that plugs into existing shell-based workflows rather than a guided setup wizard.
Best fit: terminal-savvy developers who switch identities often
For developers who already work in the terminal and manage multiple code-hosting accounts, git-swap provides a focused way to apply the correct commit identity quickly. Expect a direct, scriptable workflow rather than a graphical assistant; double-check profile selection before committing to avoid attribution mistakes. Recommended.





