Tool Lets One Laptop Keep Multiple GitHub Accounts From Impersonating Each Other
A developer describes how Git and the gh CLI assume a single identity per machine, causing commits authored under the wrong email, pushes made through an unintended account, and confusing permission errors. The problem spans four layers: commit author settings, SSH key selection, the gh CLI's single active account, and HTTPS credential storage. The article notes that common workarounds such as SSH host aliases fix only one layer and leave others broken. It introduces ghidmgt, a tool designed to keep several already-authorized accounts on the same machine separate. The author also cautions that whether a device may legitimately hold a given account is a matter for contracts and employer policy rather than configuration.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in