I just came back to a repo I haven't touched in a couple of months and it's giving me strange issues.
Here are the results of a number of actions:
>>> git status [Works as expected] On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: app/views/steps/_self_service_code.html.erb no changes added to commit (use "git add" and/or "git commit -a") >>> git fsck --name-objects Checking object directories: 100% (256/256), done. Checking objects: 100% (11080/11080), done. broken link from tree 13f6a8bd586b1d5a80a3e67610fc1103fdd827ad (HEAD@{1595970321}^:app/) to tree 9916bab22f21c3e8d77a0c4bb2e633ec26e45edb (HEAD@{1595970321}^:app/views/) missing tree 9916bab22f21c3e8d77a0c4bb2e633ec26e45edb (HEAD@{1595970321}^:app/views/) missing blob 9241fc61b7d8ede2f9c1081d97db7f4ae2dd81a7 (:app/views/steps/_self_service_code.html.erb) ... >>> git restore app/views/steps/_self_service_code.html.erb error: unable to read sha1 file of app/views/steps/_self_service_code.html.erb (9241fc61b7d8ede2f9c1081d97db7f4ae2dd81a7) >>> git log --raw --all --full-history | grep 9916bab22f21c3e8d77a0c4bb2e633ec26e45edb fatal: unable to read tree 9916bab22f21c3e8d77a0c4bb2e633ec26e45edb >>> git log --raw --all --full-history | grep 9241fc61b7d8ede2f9c1081d97db7f4ae2dd81a7 fatal: unable to read tree 9916bab22f21c3e8d77a0c4bb2e633ec26e45edb I've tried everything I've read about online, including pulling from a Heroku repo and running 'First Aid' on my disk (it's a mac recently upgraded to Catalina from High Sierra). Nothing has fixed these issues so far.
Git version 2.28.0.
git worktree add)? Did you have Git 2.14 or earlier installed for a while, while using it? I've seen the pre-Git-2.15 bug in action here. Separately:HEAD@{1595970321}: that number in braces seems ridiculously huge; just how big is this HEAD reflog?