From 95e7841d5cf822bf8aef8f862dda8c47d4da7776 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 29 Apr 2021 08:28:47 -0400 Subject: [PATCH] Add shell script to fix broken object files --- bin/git-fix-corrupt.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/git-fix-corrupt.sh diff --git a/bin/git-fix-corrupt.sh b/bin/git-fix-corrupt.sh new file mode 100755 index 0000000..dd0dd82 --- /dev/null +++ b/bin/git-fix-corrupt.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +find .git/objects/ -type f -empty | xargs rm +git fetch -p +git fsck --full