How does git know who deleted a file?
習慣沉默
習慣沉默 2017-05-02 09:24:32
0
2
751

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.

習慣沉默
習慣沉默

reply all(2)
伊谢尔伦

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.
阿神
git log -p 删除文件名称
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template