2017-03-01 62 views

回答

0

如果不包括意味着文件未在提交更改,設置一個是git log --pretty=%h --follow <file>,B組是git log --%hB - 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 
+0

那麼,我會使用'comm'而不是'sort',但是是的。 :-) – torek

相關問題