git - Identify commit in which a particular file was deleted -
i working on project hosted on git. in directory in repo, has deleted file [a.txt] @ path [/home/git/myproject/generic]. now, lot of commits have happened on files in directoty. want track down commit in file removed.
what have tried.
git log --oneline myproject/generic
but returns lot of commits , difficult track down exact commit.
i tried
git log --oneline myproject/generic/a.txt
but returns, path not exist error.
suggestions ?
simply add --
:
git log --oneline -- myproject/generic/a.txt
Comments
Post a Comment