[英]git reflog references pruned commits, but does not show the reflog for the branch
git gc顯示:
warning: reflog of 'refs/remotes/origin/abc_branch' references pruned commits
但是,當我試圖看到reflog時,我什么也得不到:
$ git reflog show origin/abc_branch@{0}
fatal: ambiguous argument 'origin/abc_branch@{0}': unknown revision or path not in the working tree.
我知道語法是正確的,因為這發生在另一個分支上,我能夠看到reflog - 並將其刪除。
abc_branch已被刪除而未被合並 - 提交被刪除。 我不想恢復它,我只是想擺脫警告。
如果你只是想擺脫abc_branch
ref,你可以嘗試:
git update-ref -d refs/remotes/origin/abc_branch
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.