1. 程式人生 > >如何統計版本庫中某一使用者的提交次數

如何統計版本庫中某一使用者的提交次數

 設定一個別名
lg2 = "log --all --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(bold white)%s%C(reset) %C(yellow)—%an%C(reset)%C(bold yellow)%C(auto)%d%    C(reset)' --abbrev-commit --date=relative --show-signature --branches"
git lg2 |grep -c 你的名字 搜尋

就可以顯示總共你提交了多少次了