Answer the question
In order to leave comments, you need to log in
Why isn't author replaced when a commit is made?
I'm developing a simple gimmick to send commits over the web. Other commands such as status, add -A - work, but when executed
git commit --author="User <[email protected]>" -m 'just commit'
*** 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.
fatal: unable to auto-detect email address (got '[email protected](none)')
Answer the question
In order to leave comments, you need to log in
The call of three commands in one line worked:
git config user.email "[email protected]"; git config user.name "Your Name";git commit -m 'commit'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question