DEV Community

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

Collapse
 
gedw99 profile image
Gerard Webb

This is just what I need but did not know was possible. Thanks Salim.

I am not very confident in my team and so if I can submit as a different person ( it's a really big company so will be cool ) and they hate my PR then nothing lost !!.ah but what if they like it ?
Ah it's a double edged sword this one ..

Collapse
 
ferricoxide profile image
Thomas H Jones II

Take note of the doubled commit-icon in the image-capture from the author's repository view. Git still knows who actually pushed the commite - eitehr via the SSH key used for the git@... URL, the credentials passed via the https://... URL or the API-token you used. So, you'll get this doubled icon when the author-tag doesn't match what's in the pusher's registered list of email addresses.

Also, (especially) if you're in a big org, you should probably be forcing commit-signing on your projects to help prevent attempts at game-playing.