查看某行代码谁写的:

git blame file_name
git blame -L 58,100 file_name  # 58~100 行代码

其输出格式为:

commit_ID | 代码提交作者 | 提交时间 | 代码位于文件中的行数 | 实际代码 

根据 commit_ID 可以查看对应的提交记录:

git show commit_ID

相关文章:

  • 2022-02-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-04
  • 2021-11-28
  • 2022-12-23
  • 2022-02-16
  • 2021-10-13
相关资源
相似解决方案