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

Updated . Posted . 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>
Profile picture of Max E.
Max E.
Last edit
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)