$ git gc
fatal: bad object refs/heads/w32tm.exe
fatal: failed to run repack
$ git fsck
bad sha1 file: .git/objects/03/cmdkey.exe
bad sha1 file: .git/objects/03/cmdkey_000.exe
:
<省略>
:
bad sha1 file: .git/objects/ff/appmgmts_002.dll
bad sha1 file: .git/objects/ff/appmgmts_003.dll
Checking object directories: 100% (256/256), done.
Checking objects: 100% (1042/1042), done.
error: refs/heads/w32tm.exe: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/heads/w32tm_000.exe: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/heads/w32tm_001.exe: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/heads/w32tm_002.exe: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/heads/w32tm_003.exe: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tags/W32Time.admx: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tags/W32Time_000.admx: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tags/W32Time_001.admx: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tags/W32Time_002.admx: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tags/W32Time_003.admx: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tlscsp.dll: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tlscsp_000.dll: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tlscsp_001.dll: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tlscsp_002.dll: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/tlscsp_003.dll: invalid sha1 pointer 0000000000000000000000000000000000000000
Checking connectivity: 1723, done.
$ rm -rf .git/refs/heads/w32tm.exe
$ rm -rf .git/refs/heads/w32tm_000.exe
$ rm -rf .git/refs/heads/w32tm_001.exe
$ rm -rf .git/refs/heads/w32tm_002.exe
$ rm -rf .git/refs/heads/w32tm_003.exe
$ rm -rf .git/refs/heads/W32Time.admx
$ rm -rf .git/refs/heads/
$ rm -rf .git/refs/tags/W32Time.admx
$ rm -rf .git/refs/tags/W32Time_000.admx
$ rm -rf .git/refs/tags/W32Time_001.admx
$ rm -rf .git/refs/tags/W32Time_002.admx
$ rm -rf .git/refs/tags/W32Time_003.admx
$ rm -rf .git/refs/tlscsp.dll
$ rm -rf .git/refs/tlscsp_000.dll
$ rm -rf .git/refs/tlscsp_001.dll
$ rm -rf .git/refs/tlscsp_002.dll
$ rm -rf .git/refs/tlscsp_003.dll
$ git fsck
bad sha1 file: .git/objects/03/cmdkey.exe
:
<省略>
:
bad sha1 file: .git/objects/ff/appmgmts_001.dll
bad sha1 file: .git/objects/ff/appmgmts_002.dll
bad sha1 file: .git/objects/ff/appmgmts_003.dll
Checking object directories: 100% (256/256), done.
Checking objects: 100% (1042/1042), done.
Checking connectivity: 1723, done.
$ git gc
Enumerating objects: 1723, done.
Counting objects: 100% (1723/1723), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1235/1235), done.
Writing objects: 100% (1723/1723), done.
Total 1723 (delta 438), reused 980 (delta 211), pack-reused 0
Removing duplicate objects: 100% (256/256), done.
bad sha1 file: .git/objects/03/cmdkey.exe
:
<省略>
:
bad sha1 file: .git/objects/ff/appmgmts_003.dll
$