Managing Multiple Git Identities on One Machine

TL;DR: Want separate Git emails per project? Just don’t use --global. The Problem: So I ran into this situation where I needed one project folder to use my university credentials while keeping my personal Gmail for literally everything else in VS Code. Classic identity crisis, but make it Git. Honestly thought this would be a nightmare to set up, but Git actually makes it pretty straightforward once you know the trick. ...

February 5, 2026 · 2 min · Me