How to attribute a single commit to multiple developers?

后端 未结 9 1469
感情败类
感情败类 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:55

    git-pair

    https://github.com/pivotal/git_scripts#git-pair

    This simple script from Pivotal to automate Git pair programming attribution.

    You create a .pairs file like:

    # .pairs - configuration for 'git pair'
    pairs:
      # :  [; ]
      eh: Edward Hieatt
      js: Josh Susser; jsusser
      sf: Serguei Filimonov; serguei
    email:
      prefix: pair
      domain: pivotallabs.com
      # no_solo_prefix: true
    #global: true
    

    and then:

    git pair sp js
    

    sets:

    user.name=Josh Susser & Sam Pierson
    user.email=pair+jsusser+sam@pivotallabs.com
    

    for you.

提交回复
热议问题