Note: starting with Git 2.3.1+ (Q1/Q2 2015), the error message will be more explicit.
See commit 1044b1f by Michael J Gruber (mjg
):
commit
: reword --author
error message
If an --author
argument is specified but does not contain a '>
' then git tries to find the argument within the existing authors; and gives the error message "No existing author found with '%s'
" if there is no match.
This is confusing for users who try to specify a valid complete author
name.
Rename the error message to make it clearer that the failure has two
reasons in this case.
The solution remains to have the config user.name and user.email properly set, but for the case where --author
is used, at least the expected argument is now clearer.
So run:
git add --all ; git commit -m "$git_msg" \
--author "First Last <[email protected]>"; git push
git commit
without "--author"