0
這基本上是List all commits for a specific file問題。我想列出所有不包含特定文件(或文件)的提交。這可能嗎?列出所有不包含特定文件的提交
這基本上是List all commits for a specific file問題。我想列出所有不包含特定文件(或文件)的提交。這可能嗎?列出所有不包含特定文件的提交
如果不包括意味着文件未在提交更改,設置一個是git log --pretty=%h --follow <file>
,B組是git log --%h
和B - A = {sha1 values of commits that don't include the file}
。
git log --pretty=%h --follow *file* > a.txt
git log --pretty=%h *file* > b.txt
sort b.txt a.txt a.txt | uniq -u
那麼,我會使用'comm'而不是'sort',但是是的。 :-) – torek