This is a autopost bolg frinds we are trying to all latest sports,news,all new update provide for you
Rabu, 13 Ogos 2025
Show HN: Gitego – Automatic Git identity switcher https://ift.tt/Lw1BevC
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/DVPZCc3 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/DVPZCc3 August 14, 2025 at 12:49AM
Langgan:
Catat Ulasan (Atom)
Show HN: Gitego – Automatic Git identity switcher https://ift.tt/Lw1BevC
Show HN: Gitego – Automatic Git identity switcher # gitego: Automatic Git Identity Switcher I was juggling work and personal GitHub accounts...
-
Show HN: Locksmith – detect locks taken by Postgres migrations https://ift.tt/0cBueJt February 10, 2025 at 02:26AM
-
Show HN: I built a FOSS tool to run your Steam games in the Cloud I wanted to play my Steam games but my aging PC couldn’t keep up, so I bui...
-
Show HN: When is the next Caltrain? (minimal webapp) I was frustrated with the existing caltrain websites / apps, so I made a super minimali...
Tiada ulasan:
Catat Ulasan