From 57f12d2559029dfb1a7bff8521a5c270fae303ee Mon Sep 17 00:00:00 2001 From: James Skemp Date: Wed, 6 Mar 2024 23:06:22 -0600 Subject: [PATCH] Add command to get history of deleted file --- src/logging.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/logging.md b/src/logging.md index e8db81d..e8a5bfc 100644 --- a/src/logging.md +++ b/src/logging.md @@ -38,6 +38,9 @@ git log --follow -p # View commits that have deleted files. git log --diff-filter=D --summary +# View commits that changed a file, even if deleted. +git log --all -- + # View all deleted files. git log --all --pretty=format: --name-only --diff-filter=D | sort -u