Skip to content

Instantly share code, notes, and snippets.

@unceus
unceus / gist.md
Created January 25, 2022 00:29 — forked from esgn/gist.md
Handle multiple git identities using .gitconfig files

How to use .gitconfig files to handle multiple identities / git providers (github, gitlab, ...)

In the user home, define a parent .gitconfig file for your main account (eg: work account)

[user]
        name = John Doe
        email = [email protected]
[credential]
        helper = store --file /home/johndoe/.git-credentials