Can you do this trailer action on an amend? Is it just containing that other email in the required format within the commit body message that does this or is it some kind of annotation?
Yeah I think you can do a
git commit --amend --trailer 'Co-authored-by: name <person@example.com>'
to get what you want.
And couple that with --reuse-message=HEAD to only add the trailer to the most recent commit and not even trigger an editor to open up:
--reuse-message=HEAD
git commit --amend --trailer 'Co-authored-by: name <person@example.com>' --reuse-message=HEAD
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Can you do this trailer action on an amend? Is it just containing that other email in the required format within the commit body message that does this or is it some kind of annotation?
Yeah I think you can do a
to get what you want.
And couple that with
--reuse-message=HEADto only add the trailer to the most recent commit and not even trigger an editor to open up: