git config with multiple usernames on one machine - lmmx/devnotes GitHub Wiki

  • git config without the --global flag is just in .git/config [cf. ~/.gitconfig]
    • Note that GIT_CONFIG env var can also be used so as to manipulate a process through shell scripting (e.g., via))