Skip to content

Set git username and email per repo


When doing dev work for your own personal repos on your work computer, you are logged in as a work user. This then causes stuff to show up badly.

Fix it

Git commands

Navigate to your repo you wish to change

Run the below

git config "<name>"
git config "<email>"

Or you can edit the config file, like below:

Edit .git/config

    name = <your name>
    email = <your work email>

Want to make this site better? Open a PR or help fund hosting costs