How to get the git history of a file that does not exist anymore

Posted Over 1 year ago. Visible to the public.

If you want to see the git history of a project file, that doesn't exist anymore, the normal git log <path_to_file> won't work. You have to add certain flags to make it work:

git log --all --full-history -- <path_to_file>
Max E.
Last edit
Over 1 year ago
Arne Hartherz
License
Source code in this card is licensed under the MIT License.
Posted by Max E. to makandra dev (2022-09-09 08:10)