Skip to main content

Command Palette

Search for a command to run...

Git settings for multiple projects

Updated
1 min readView as Markdown

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

git config --global user.name [your name]
git config --global user.email [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.

More from this blog

Weensy Code

42 posts