
我必須顯示所有提交向某個文件添加(和刪除)的行數。
答案1
使用git log --numstat --oneline <Filename>
。這將為您提供 file 的提交列表<Filename>
,每個提交有兩行,使用以下語法:
[sha hash] [commit title line]
[lines added] [lines removed] [path to file in repository]
我必須顯示所有提交向某個文件添加(和刪除)的行數。
使用git log --numstat --oneline <Filename>
。這將為您提供 file 的提交列表<Filename>
,每個提交有兩行,使用以下語法:
[sha hash] [commit title line]
[lines added] [lines removed] [path to file in repository]