Git settings for multiple projects


1 min read

If you using git, maybe you were set and But, didn't you set with this construction?

git config --global [your name]
git config --global [your email]

This way is no problem when you develop 1 project. But if you developing over two projects, will use the same name when committing on all projects. Here is how to give setting to each individual project.

git config --local [key] [value]

Of course, the priority is local> global, so if exist a local value, used that; if not, used global.