Configuring Your Name and Email
Set your identity
Git records author name and email on each commit. Configure them once with the --global flag so every repository on this machine uses the same defaults.
git config --global user.name "Ada Lovelace"
git config --global user.email "[email protected]"
Choose a sensible email
If you push to GitHub, use an email address connected to your GitHub account, or GitHub's noreply address from your account settings, so commits are linked to your profile.
Review your settings
List the configuration Git will use. Global settings live in your user config file; a repository can override them locally.
git config --global --list
git config user.name
git config user.email
Set a helpful default editor
Optional but useful: choose the editor Git opens for commit messages.
git config --global core.editor nano
Comments
One comment per signed-in account. Comments are saved with this page’s URL.