Git 如何只查看commit中某一個檔案的變化
大家讲道理
大家讲道理 2017-05-02 09:46:46
0
1
592

一共有三次commit,如,

history_commit_a
history_commit_b
history_commit_c

其中,history_commit_b中有50個檔案做了修改,檔案名稱分別為

        history_commit_b_file1
        history_commit_b_file2
        history_commit_b_file3
        .
        .
        .

等等。

那麼問題來了。如果我想看history_commit_b中history_commit_b_file50發生了哪些變化,直接使用:

git show history_commit_b;

git會把所有檔案的變化一下子全部列出來,能不能用指令控制git只顯示出history_commit_b中的history_commit_b_file50檔的變化、而不顯示history_commit_b_file1...history_commit_b_file49檔的變化。

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

全部回覆(1)
曾经蜡笔没有小新

gitk history_commit_b_file50
git show history_commit_b history_commit_b_file50

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板