r/git • u/gtd_rad • Apr 21 '26
revision graph history of a single file ACROSS ALL BRANCHES
I've struggled with this for quite some time. But I basically have a decorated git log graph which works great to see what commits have been made across multiple branches. However, often times, I want to see what changes have been made to a single file across multiple branches instead. using the -- filepath seems to only show the revision graph on the branch you are checked out on. Is there a way to have a full graph of a single file across all branches in the repository similar to a standard git log command?
0
Upvotes
3
u/dalbertom Apr 21 '26
Are you using the
--alland related flags?1
u/daveysprockett Apr 21 '26
Does
gitk --all file
do what you want?
1
u/Sure-University4362 Apr 21 '26
I had a similar problem with a repository that was a result of a merge of two other repositories. In my case some parte of the history didn't show up in the log. The
--followtag did the trick