查看某行代码谁写的:
git blame file_name
git blame -L 58,100 file_name # 58~100 行代码
其输出格式为:
commit_ID | 代码提交作者 | 提交时间 | 代码位于文件中的行数 | 实际代码
根据 commit_ID 可以查看对应的提交记录:
git show commit_ID
查看某行代码谁写的:
git blame file_name
git blame -L 58,100 file_name # 58~100 行代码
其输出格式为:
commit_ID | 代码提交作者 | 提交时间 | 代码位于文件中的行数 | 实际代码
根据 commit_ID 可以查看对应的提交记录:
git show commit_ID
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。