Git-列出文件文件夹的所有作者? [英] Git - list all authors of a folder of files?

查看:382
本文介绍了Git-列出文件文件夹的所有作者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何列出由git版本控制的特定文件夹的作者姓名?

How can I list the author names of a particular folder that's versioned by git?

我看到我可以git blame一个文件并列出每一行的作者,但是我不能为一个文件夹列出该行,并且我还只希望有一个唯一列表(每个作者只列出一次)

I see that I can git blame a file and list the author of each line, but I can't do that for a folder, and I would also like only a unique list (each author listed only once)

推荐答案

基于执行此操作

git log --pretty=format:"%an%x09" myfolder | sort | uniq

这篇关于Git-列出文件文件夹的所有作者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆