List of all commits (for all branches) for this file

This question is closely related to the List of all commits for a specific file , however it is different. I want to know what commits, in all branches , changed this file.

To make it more complex, this file may or may not be in the working tree.

+50
git
Sep 19 '11 at 5:14
source share
3 answers

You can use gitk

gitk --all <path to file> (you need to install gitk)

eg.

gitk --all -- /home/kit.ho/project/abc.txt

+34
Sep 19 2018-11-11T00:
source share
— -

Try the following:

 git log --all -- path 
+66
Sep 19 '11 at 5:29
source share

Command line

I would highly recommend adding a graph parameter using git log:

 git log --graph --all -- <filename> 

git log --graph --all - <filename>

Gui

Gitk is a fairly old tool and is not always installed, I recommend using another free tool, for example, SourceTree:

Sourcetree

+9
Jan 14 '17 at 13:41
source share



All Articles