How to view only the changes of a certain file in a commit in Git
大家讲道理
大家讲道理 2017-05-02 09:46:46
0
1
563

There are three commits in total, such as,

history_commit_a
history_commit_b
history_commit_c

Among them, 50 files in history_commit_b have been modified, and the file names are

        history_commit_b_file1
        history_commit_b_file2
        history_commit_b_file3
        .
        .
        .

Wait.

Then the question comes. If I want to see what changes have occurred in history_commit_b_file50 in history_commit_b, use directly:

git show history_commit_b;

Git will list the changes in all files at once. Can you use the command to control git to only display the changes in the history_commit_b_file50 files in history_commit_b, but not the changes in the history_commit_b_file1...history_commit_b_file49 files?

大家讲道理
大家讲道理

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

reply all(1)
曾经蜡笔没有小新

gitk history_commit_b_file50
git show history_commit_b history_commit_b_file50

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template