Related Issues
Object file empty
Error message
error: object file .git/objects/... is empty
Solution 1
find .git/objects/ -type f -empty -delete
git fetch -p
git fsck --full
Solution 2
git stash
rm .git/objects/...
git status
rm .git/index
git reset
git pull
tail -n 2 .git/logs/refs/heads/BRANCH_NAME
git update-ref HEAD BRANCH_NAME
git status
```sh
git reset
git stash pop
RPC failed; HTTP/2 protocol error
Update http version
git config --global http.version HTTP/1.1
Reset after
git config --global --unset http.version