List all commits (across all branches) for a given file

后端 未结 3 1045
独厮守ぢ
独厮守ぢ 2020-12-23 00:08

This question is closely related to List all commits for a specific file however it is different. I want to find out which commits, across all branches, had

相关标签:
3条回答
  • 2020-12-23 00:49

    Command line

    I would highly recommend to add the graph option with git log:

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

    Gui

    Gitk is an pretty old tool and not always installed, I recommend a different free tool like e.g. SourceTree:

    0 讨论(0)
  • 2020-12-23 00:54

    Try this:

    git log --all -- path
    
    0 讨论(0)
  • 2020-12-23 01:03

    You can use gitk

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

    e.g.

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

    0 讨论(0)
提交回复
热议问题