Git blame — prior commits?
问题 Is it possible to see who edited a specific line before the commit reported by git blame , like a history of commits for a given line? For example, I run the following (on the superb uncrustify project): $ git blame -L10,+1 src/options.cpp ^fe25b6d (Ben Gardner 2009-10-17 13:13:55 -0500 10) #include \"prototypes.h\" How can I find out who edited that line before commit fe25b6d ? And who edited it before that commit? 回答1: git blame -L 10,+1 fe25b6d^ -- src/options.cpp You can specify a