A different Git email per folder on Windows (includeIf)
One includeIf block gives every repo in a folder its own Git email. Here is the exact setup, and the six ways it quietly stops working on Windows.
One includeIf block gives every repo in a folder its own Git email. Here is the exact setup, and the six ways it quietly stops working on Windows.
One environment variable moves your Claude Code login, settings, skills, plugins and history. A few things do not move, and a few things break.
A one-minute check of every account a folder uses, a Git hook that stops a push with the wrong email, and how to fix commits that are not pushed yet.
Anthropic documents one way to stay signed in to two Claude Code accounts. Here it is for Windows PowerShell, with the checks and the limits.
claude-acc is a good tool. If you move to Devpit anyway, your accounts can stay exactly where they are. Here is what to keep, what to remove, and in what order.
Git Credential Manager, gh and SSH keys each pick a GitHub account in a different way. Here is how each one works on Windows and how to make it follow the folder.
One junction per skill, one import line for CLAUDE.md, and a separate install for plugins. Here is why each piece is shared the way it is.
Two of the five have real multi-account support, one has a clean workaround, one has an undocumented one, and one picks the account per project.