I'm assigned to a task to delete unnecessary files from our git repository. This results in deleting many files and editing few others. When I issue git show
or git log -p
my screen is flooded with the contents of the deleted files and I can hardly find the meaningful parts which are the modifications I made in the other files.
Illustration:
--- a/path/to/a/file
+++ /dev/null
@@ -1,41 +0,0 @@
-Lots of content I don't want to see.
-Lots of content I don't want to see.
-Lots of content I don't want to see.
-Lots of content I don't want to see.
-Lots of content I don't want to see.
-...
Is there any way to suppress displaying the contents of deleted files?