Фиксация без установки user.email и user.name

Я пытаюсь совершить так

git commit --author='Paul Draper <[email protected]>' -m 'My commit message'

но я получаю

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

Я могу установить их, но я нахожусь в общем окне, и мне придется (хочу) сбросить их потом.

git config user.name 'Paul Draper'
git config user.email '[email protected]'
git commit -m 'My commit message'
git config --unset user.name
git config --unset user.email

Это много строк для одного коммита!

Есть ли более короткий путь?

Ответы на вопрос(2)

Ваш ответ на вопрос