• Arthur Besse@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    17 hours ago

    frequently changing one’s global git author config seems like a recipe for making mistakes. when using multiple git identities in the some environment, it’s better to use per-checkout configs so that you always use the correct one: git config --local user.name User; git config --local user.email user@example.com will write these settings to the checkout’s .git/config.