查看某行代碼誰寫的:
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刪除。