Skip to content

Set up git config name and email for work projects

vim ~/.gitconfig

Add lines:

[includeIf "gitdir:~/workspace"]
    path = .gitconfig.work
vim .gitconfig.work

Add lines:

[user]
    name = "YOUR NAME"
    email = "YOUR WORK EMAIL"