How to attribute a single commit to multiple developers?

后端 未结 9 1486
感情败类
感情败类 2020-12-02 06:50

The way all version control systems I\'m familiar with work is that each commit is attributed to a single developer. The rise of Agile Engineering, and specifically pair pro

9条回答
  •  广开言路
    2020-12-02 07:53

    A git convention is to use Co-Authored-By at the end of the commit message (git kernel: Commit Message Conventions, referring to Openstack Commit Messages). This is also one of the solutions on the git-core bug linked in Gerry's answer

    Co-authored-by: Some One 
    

    In that comment on May 5, 2010, Josh Triplett also suggests implementing corresponding support in git.

    As Llopis pointed out in a comment, GitHub announced support for this on their blog on Jan 29, 2018: Commit together with co-authors (details).

提交回复
热议问题