开发者

git reflog references pruned commits, but does not show the reflog for the branch

开发者 https://www.devze.com 2023-02-06 04:59 出处:网络
git gc shows: warning: reflog of \'refs/remotes/origin/abc_branch\' references pruned commits But, when I try to see the reflog, I get nothing:

git gc shows:

warning: reflog of 'refs/remotes/origin/abc_branch' references pruned commits

But, when I try to see the reflog, I get nothing:

$ git reflog show origin/abc_branch@{0}

fatal: ambiguous argument 'origin/abc_branch@{0}': unknown revision or path not in the working tree.

I know the syntax is right, becaus开发者_如何学JAVAe that happened to another branch and I was able to see the reflog - and remove it.

The abc_branch has been deleted on the remote without being merged - commits deleted. I don't want to recover it, I just want to get rid of the warning.


If you just want to get rid of the abc_branch ref, you could try:

git update-ref -d refs/remotes/origin/abc_branch
0

精彩评论

暂无评论...
验证码 换一张
取 消