每次在 git push 的时候都会报这样的 warning (Push 和 Pull 都不受影响)
warning: ignoring broken ref refs/pull-requests/81/v2
warning: ignoring broken ref refs/pull-requests/84/v1
warning: ignoring broken ref refs/pull-requests/91/v1
warning: ignoring broken ref refs/pull-requests/95/v3
warning: ignoring broken ref refs/pull-requests/98/v2
Everything up-to-date
我看了本地的 .git/refs/ 文件夹也没有找到 pull-requests 这个子文件夹
大家有什么好方法可以清理一下这些已经失效的 ref(大概几百条)😩
感激不尽
1
br_wang 2022-07-06 17:48:07 +08:00
|
2
syhsyh9696 OP @br_wang 谢谢回答,这个我也尝试过了但是也会报一个 warning
```shell remote: warning: Deleting a non-existent ref. ``` 很奇怪,明明已经不存在了 |
3
GeruzoniAnsasu 2022-07-06 18:16:36 +08:00
试试 git-fsck
|
4
ailer 2022-07-06 22:58:46 +08:00 via Android
删掉,再克隆
|
5
forcecharlie 2022-07-07 10:19:44 +08:00
cat .git/packed-refs 看看有没有
|