git config

rerere (Avoid repeated merge conflicts)

git config --global rerere.enabled true

Tweak your Git config for multiple user IDs

Description

Git’s git config command (hereafter referred to as “config”) enables you to set repository or global options for Git.

It has many options, and one of them, includeIf, is handy when you have dual roles using Git, for example, working full time as a developer and contributing to open source projects in your spare time .

Most people in this situation don’t want to use a common config for both roles or, at the very least, would rather keep certain portions of their config distinct, especially if they use the same computer in both roles.

How to check your Git configuration

The command below returns a list of information about your git configuration including user name and email:

git config -l