2016-07-29 45 views
0

說我已經作出了一系列承諾一定的項目,所以當我git log --oneline它產生以下如何列出爲特定提交而修改的文件?

e61c4fb Wrote the special problem review of related literature. 
eb584ba Wrote the special problem objectives. 
8d2dd52 Added more research papers 
72a2d27 Fixed the bug during the removal of parent chromosomes in ga_wknn and saga_wknn 
d7467df Added as the k in KNN as a parameter in the constructor of each application. 
2293f43 Added a simulation result. 
bdfcf41 Done with adding Introduction Comments 

接下來我想看到已經添加,修改過的文件,在其中的一個刪除提交。我試過

git diff d7467df 

但它也顯示了每個文件的修改內容,這使得整個事情變得很長。我只想查看已更改的列表文件,並且沒有關聯任何內容。我如何實現這一目標?

+0

'git的差異d7467df^d7467df --name-only' – ElpieKay

回答

2

git show --name-only commit_hash

+0

做同樣的事情:'git的日誌 - 1 - 僅限名稱的commit_hash' –

0

如何幹淨地只列出了修改過的文件,沒有多餘的信息:

git diff-tree --no-commit-id --name-only -r commit_id 
相關問題