Wednesday, August 13, 2025
Show HN: Gitego – Automatic Git identity switcher https://ift.tt/0qU8w5Y
Show HN: Gitego – Automatic Git identity switcher # gitego: Automatic Git Identity Switcher I was juggling work and personal GitHub accounts with separate PATs for a long time and constantly forgetting to switch between them. Needed a way to commit to personal and work projects without the mental overhead of managing two Git identities. My issue: ``` cd ~/work/important-project git push # Authentication failed - using personal PAT for work repo ``` Then the dance: ``` git config user.email "work@company.com" # Update Git credential helper or remember which PAT to use # Rinse and repeat every time I switch contexts ``` My solution (I'm sure others exist?) ``` # One-time setup gitego add work --name "John Doe" --email "john@company.com" --pat "ghp_work_token" gitego add personal --name "John" --email "john.personal@gmail.com" --pat "ghp_personal_token" gitego auto ~/work/ work gitego auto ~/personal/ personal # Now it just works cd ~/work/any-project git commit -m "fix bug" && git push # Uses work identity + PAT automatically cd ~/personal/side-project git commit -m "new feature" && git push # Uses personal identity PAT automatically ``` How It Works - Uses Git's native `includeIf` for identity switching - Acts as a Git credential helper for automatic PAT selection - Stores PATs securely in your OS keychain - Single Go binary, works on macOS/Windows/Linux No more context switching overhead. Just cd and commit. GitHub: https://ift.tt/ajXpfAK Install: go install github.com/bgreenwell/gitego@latest Feedback welcome! Keep in mind, I built this as a personal tool, making it public in case others have the similar problems and can benefit from the solution! https://ift.tt/ajXpfAK August 14, 2025 at 12:49AM
Subscribe to:
Post Comments (Atom)
Show HN: rari, the rust-powered react framework https://ift.tt/End8JZf
Show HN: rari, the rust-powered react framework https://rari.build/ February 13, 2026 at 12:45AM
-
Show HN: Stickerbox, a kid-safe, AI-powered voice to sticker printer Bob and Arun here, creators of Stickerbox. If AI were built for kids, w...
-
Show HN: Music player for big local collections with mpd support mpz is a C++/Qt music player focused on UX, with derectory tree and playlis...
-
Show HN: An AI logo generator that can also generate SVG logos Hey everyone, I've spent the past 2 weeks building an AI logo generator, ...
No comments:
Post a Comment