Git configuration is stored in the following files, and when looking up configuration, it is tried in the following order (see git config):
- Local:
.git/config
in the current repository - Global:
.gitconfig
in the user's home directory - System:
gitconfig
in the system configuration directory (e.g./etc
on Linux)
So to configure user.email
differently for a specific repository, do the following:
- Open the properties of a repository from the Git Repositories view
- In the Configuration tab, click on Add Entry...
- Enter
user.email
as the key and the desired value - Click OK
The repository configuration can also be changed from the preferences > Team > Git > Configuration > Repository Settings.
Note that in Git, user.name
should be a real full name such as Jane Doe
.