1

Find when a file was deleted in Git is the answer for git, but how to find when a file was deleted, in magit?

Hatshepsut
  • 5,962
  • 8
  • 44
  • 80

1 Answers1

2

Use the "--" infix argument in the log transient. This lists commits which touch the given file name.

For example, to find when the file "src/main.c" was deleted, in the current branch, type:

l   ;; magit-log
--  ;; "Limit to files"
src/main.c RET
l   ;; current

There might be a default filename that you need to delete or edit (or accept).

Related: View a file's history in Magit?

Buster
  • 546
  • 7
  • 23