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: Orca – AI Game Engine https://ift.tt/kZFVnX5
Show HN: Orca – AI Game Engine https://ift.tt/QziYTa2 August 16, 2025 at 02:52AM
-
Show HN: D&D meets Siri – Interactive voice adventure Hey HN! I've been building tooling for voice-driven apps over the past few mon...
-
Show HN: High school robotics code/CAD/design binder release Hello HN! My name is Patrick, and I am a junior at my High School’s FRC robotic...
-
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