You can use gitk --all -- filename.txt
to see the entire history of a file so you can figure out where merges happened, etc. A command line equivalent would be git log --pretty=oneline --graph --all -- filename.txt
.
By default, gitk
and git log
, when given a file name to work with, will only follow the first parent at merges. Specifying the --all
flag causes them to include commits on any branch. gitk
also has a --merge
option that may be pertinent here, and of course git log
has way too many different options to keep track of that can affect which commits are displayed and how the display is done.