Skip to content

Instantly share code, notes, and snippets.

View alexgmcm's full-sized avatar

Alex McMurray alexgmcm

View GitHub Profile
@bgauduch
bgauduch / 0 - Multiple git identities on one machine.md
Last active November 11, 2026 03:40
Multiple git identities on one machine: config per folder and per provider (personal vs work). Every command verified.

Multiple git identities on one machine

One machine, several git identities (personal vs work, GitHub vs GitLab, two accounts on one provider). Each repository picks its own name, email and credentials. In a hurry: Appendix B, once per rule.

A wrong identity does not fail: git commits and pushes under the wrong author. Part 1 ends with the check that catches it.

Requirements

Feature Minimum git