GitCheatSheet.org logo
Home / How To

Show the email address configured for a specific location (e.g. worktree, local, global, system)

# Worktree
git config --worktree user.email

# Local (current repository)
git config --local user.email

# Global
git config --global user.email

# System
git config --system user.email

The precedence is: worktree, local, global, system.