Inside the repository that you want to configure, run:
git config --local --edit
Search Git Commands | More How Tos