Wrong Git Account Again? Conditional Includes & Multi-Account Isolation for GitHub CLI / AI Agents
2026-07-24T18:00:00+09:00
Background
As a developer constantly jumping across multiple projects, I frequently run into a headache-inducing issue: committing code in a company repository with my personal email, or mistakenly using my work email in a personal repo. Seeing a personal avatar show up in the commit history of a corporate project is always embarrassing.
Recently, I made this mistake again and had already pushed it to the remote repository. This time, I decided to fix the root cause once and for all so this careless error never happens again.
@
CheerChen
13 minute read