configuration for one command only

suggest change

You can use -c <name>=<value> to add a configuration only for one command.

To commit as an other user without having to change your settings in .gitconfig :

git -c = mail@example commit -m "some message"

Note: for that example you don’t need to precise both and, git will complete the missing information from the previous commits.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents