Hacker News

Show HN: Alter – Switch Git username and email and credential in one line

Hello HN!

I built a profile switcher for Git because, I regularly use multiple Git identities and found the existing workflows too long (git config user.name, git config user.email, etc) and easy to mess up. I wanted a tool that lets me switch usernames, emails, and credentials with a single command.

I previously made a similar tool in Python, but it had performance issues and required a few seconds of startup time. After learning Rust and finding a crate that handles Git config nicely, I rewrote the tool to make it faster and more reliable.

Thanks for checking it out, happy hacking!