How to set local name and email for a repository in Git

git config --local user.name 'Name'
git config --local user.email 'Email'