How do I search git history for a disappeared line?

后端 未结 2 958
广开言路
广开言路 2020-12-13 05:51

I need to search the history of a specific file in a git repository to find a line that is gone. The commit message will not have any relevant text to search on. What comm

2条回答
  •  一向
    一向 (楼主)
    2020-12-13 06:34

    How about git log --stat | grep 'filename' to begin narrowing it down?

提交回复
热议问题