GitHub and GitLab both support the idea of co-authors which allow a user to attribute a commit to more than one author by adding one or more Co-authored-by
trailers to the commit's message.
Co-author attibuting looks somethink like the following in the commit message.