DEV Community

Discussion on: How to attribute another author when you're committing on git?

Collapse
 
jpgoldberg profile image
Jeffrey Goldberg

This is why we sign commits!

Collapse
 
ztickm profile image
Salim MAHBOUBI

Oh this is great thanks!

Collapse
 
ferricoxide profile image
Thomas H Jones II

We do signed commits, as well. Presumably, if you were wanting to do this type of thing (giving credit where credit's due), you'd want to disable signing for the commit.

That said, no matter who the original code-author is, (at least in our organization) if you push breakage into the project because you were effectively vouching for someone else's code, you'll get the blame. Similar rule applies to designated approvers that approve a merge to a protected branch.