是 git 的问题,你可以根据以下日志排查:
首先是命令 git fetch origin 报错:
fatal: bad object refs/remotes/origin/main
error: github.com:nightlye/supermemo-backup.git did not send all necessary objects
然后是命令 git log remotes/origin/main --pretty=format:"%ai" -1 报错:
warning: ignoring broken ref refs/remotes/origin/main
warning: ignoring broken ref refs/remotes/origin/main
fatal: ambiguous argument 'remotes/origin/main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git 就是太精细了,很容易出各种各样的问题,我也没有遇到过,你只能自己折腾了。