Query git reflog for all commits to a specific file

前端 未结 4 664
攒了一身酷
攒了一身酷 2020-12-13 01:43

Is it possible to check the git reflog for all commits to a specific file.

I made a commit to file foo.txt and now it no longer shows in the git history via

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 02:07

    Try:

    git rev-list --all -- foo.txt
    

    This will give you a list of all commits containing foo.txt.

提交回复
热议问题