Git “missing” commit

后端 未结 2 687
执笔经年
执笔经年 2021-02-19 19:41

I\'m in a situation where some changes made in a feature branch are not reflected in master, even though this branch was merged into it. I\'m at a loss to understand why. For

2条回答
  •  萌比男神i
    2021-02-19 20:23

    If somehow the location of the file has changed, you might need to tell git log to follow:

    $ git checkout master
    $ git log --follow -- file | grep A
    

    You can check if there is a difference between git log --oneline -- file and git log --oneline --follow -- file, to see if the file has been relocated.

提交回复
热议问题