Linux command
git-fame 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show line statistics
git fame
Include all file types
git fame --everything
Sort by commits
git fame --sort=commits
Exclude paths
git fame --exclude=[vendor/]
Show specific directory
git fame [src/]
说明
git fame generates contribution statistics showing lines of code, commits, and files per author. It provides a comprehensive view of who contributed what to the codebase, using blame analysis to count current lines attributed to each author. Output includes percentages for relative contribution comparison. The tool is useful for understanding code ownership patterns and team contribution distribution.
参数
- --sort _FIELD_
- Sort by loc, commits, or files.
- --exclude _PATTERN_
- Exclude paths.
- --everything
- Include all file types.
- --branch _BRANCH_
- Analyze specific branch.
- --help
- Display help information.
FAQ
What is the git-fame command used for?
git fame generates contribution statistics showing lines of code, commits, and files per author. It provides a comprehensive view of who contributed what to the codebase, using blame analysis to count current lines attributed to each author. Output includes percentages for relative contribution comparison. The tool is useful for understanding code ownership patterns and team contribution distribution.
How do I run a basic git-fame example?
Run `git fame` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --sort _FIELD_ do in git-fame?
Sort by loc, commits, or files.