Alter simplifies managing multiple Git accounts by allowing users to switch identities—including username, email, and GPG keys—with a single command. Designed for efficiency, it supports isolated profiles and project-specific setups, making it an essential tool for developers juggling personal and organizational projects.
Alter is a powerful command-line tool designed for seamlessly switching between Git identities and credentials with just one command. Managing multiple Git accounts can be cumbersome, particularly when it involves repeatedly configuring user.name, user.email, GPG signing keys, and credential.namespace. Alter addresses these challenges by offering a streamlined and efficient workflow.
Key Features
- Profile Management: Each Git identity—comprising username, email, GPG key, and credential namespace—is stored in an isolated profile, simplifying management.
- Effortless Switching: Users can switch between different identities using a consistent command, eliminating the need for multiple manual configurations.
- Project-Specific Configurations: The tool allows clean application of project-specific setups with the
--localflag.
Originally conceived as a personal project in another programming language, Alter was rewritten in Rust to enhance performance and leverage the robust Git-related ecosystem available in Rust, particularly utilizing the gix_config crate from gitoxide.
Usage Examples
-
To create a new profile:
alter new -
To delete an existing profile:
alter delete <slug> -
To switch to a specific profile:
alter use <slug> [--local] -
To list all available profiles:
alter list
Enhance the management of Git accounts and streamline your workflow with Alter, combining performance with ease of use.
No comments yet.
Sign in to be the first to comment.