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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -