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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -