Querying deleted content in gitFeeding the Cloud
<a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>
https://feeding.cloud.geek.nz/posts/querying-deleted-content-in-git/Feeding the Cloudikiwiki2016-03-16T21:53:20Zhttps://feeding.cloud.geek.nz/posts/querying-deleted-content-in-git/comment_1_1e2009a13df24fe1a6474d89ca266e80/Anonymous2012-11-04T04:30:26Z2010-08-06T05:57:09Z
In recent Git I needed to use "git log --follow -- long_deleted_file" to find my deleted file.
Must use full path to filehttps://feeding.cloud.geek.nz/posts/querying-deleted-content-in-git/comment_2_fb64203f0e3bc1d5d6351f6e05a8804d/Tom2016-03-16T21:53:20Z2016-03-16T21:01:04Z
<p>This might be common sense but...</p>
<p>-> pwd
/home/foo</p>
<p>-> git log -- bar</p>
<p>This will return nothing</p>
<p>-> git log -- baz/bar</p>
<p>This will return the history of the file bar in the directory baz</p>