问题描述
一共有三次commit,如,
history_commit_ahistory_commit_bhistory_commit_c
其中,history_commit_b中有50个文件做了修改,文件名分别为
history_commit_b_file1history_commit_b_file2history_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_file50git show history_commit_b history_commit_b_file50