一、克隆 Lighthouse 项目

 这是一个正在进行多人协作的项目,是一个用于对渐进式网页应用进行审计、性能度量和提供最佳实践的应用。

https://github.com/GoogleChrome/lighthouse

 

GitHub使用手册4——查看多人协作项目

GitHub使用手册4——查看多人协作项目

 

二、筛选协作者的commit

如何查明我们的协作者所完成的工作:

1.按 commit 作者分组

git shortlog  显示按字母顺序排序的人名列表,以及他们对应的提交说明

git shortlog -s -n  -s 仅显示 commit 的数量,-n 按数量排序

 

GitHub使用手册4——查看多人协作项目

GitHub使用手册4——查看多人协作项目

 

2.按作者筛选

git log --author=Surma  筛选作者Surma的 commit

GitHub使用手册4——查看多人协作项目

 

3.按搜索内容筛选 commit

commit 5966b66 为例,说明如何在 lighthouse 项目的 commit 中包含额外详细信息

git log --grep bug   筛选提到 "bug" 一词的 commit 

GitHub使用手册4——查看多人协作项目

GitHub使用手册4——查看多人协作项目

 

相关文章:

  • 2021-11-21
  • 2022-01-08
  • 2021-05-23
  • 2022-01-05
  • 2021-06-24
  • 2021-05-30
  • 2021-08-03
  • 2022-01-24
猜你喜欢
  • 2022-01-08
  • 2022-01-08
  • 2022-12-23
  • 2021-04-17
  • 2021-09-13
  • 2022-01-08
相关资源
相似解决方案