【问题标题】:How to show only filenames by commiter with git log如何使用 git log 仅显示提交者的文件名
【发布时间】:2016-05-15 01:44:42
【问题描述】:

是否只能使用 git log 显示每个作者的更改文件

示例输出:

user1
file1.txt
file3.txt
file2.txt

user2
file1.txt
file4.txt
fil6.txt

【问题讨论】:

标签: git version-control


【解决方案1】:
git log --format=%an | sort -u | while read line; do echo $line;git log --author="$line" --pretty='/ %h' --name-only | grep -v ^/ | grep -v ^$ | sort -u;echo ""; done

【讨论】:

    猜你喜欢
    • 2015-04-02
    • 2015-10-05
    • 2012-12-21
    • 2012-08-03
    • 2015-10-09
    • 2014-01-19
    • 2021-04-29
    • 2010-11-16
    • 2012-12-23
    相关资源
    最近更新 更多