Skip to content
Ricky
Chinese

搜尋

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Git 小技巧:用 .mailmap 合併不同作者

  • 則言
  • 1 分鐘
On this page

.mailmap 檔案 ==> Name you want to keep <email> Name you no longer want <email>

John Doe  John Doe
John Doe  John Doe
John Doe  john doe
Max Example  Max
之前
$ git shortlog -se
     1  John Doe <John@Doe.org>
     1  John Doe <John@doe.org>
     2  John Doe <john@doe.org>
     1  Max <max@test.co.uk>
     3  Max Example <hi@test.com>
     1  john doe <john@doe.org>
之後
$ git shortlog -se
     5  John Doe <john@doe.org>
     4  Max Example <hi@test.com>