Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 593 Bytes

File metadata and controls

18 lines (17 loc) · 593 Bytes

Check config

git config --list

Set user name and email globally

Global scope applies to the user logged in to the machine

git config --global user.name "Your Global Name"
git config --global user.email "your@email.com"

Set user name and email locally to a repository

This is useful when you want a specific setup for a repo (e.g working on a personal project v work project)

You will usually find local config in the repository under .git/config

git config --local user.name "Your Local Name"
git config --local user.email "your-local@email.com"