search

Home  >  Q&A  >  body text

How does git know who deleted a file?

Using gitlab, after a certain merge request, I found that several files were deleted. Because there are too many branches. I don’t know who deleted this file now. This file no longer exists locally. How to know who deleted it.

習慣沉默習慣沉默2808 days ago790

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:26:32

    Run in the project directory:

    git log -- DELETED_FILE_PATH

    One thing to note is that you need to add an additional -- parameter

    to git log.

    reply
    0
  • 阿神

    阿神2017-05-02 09:26:32

    git log -p 删除文件名称

    reply
    0
  • Cancelreply