You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We have a git repo on bitbucket server that has some refs we need to delete.
I can view the remote refs by calling:
git ls-remote --refs | grep pull-requests
These pull requests don't actually exist in bitbucket (i.e. Don't show up as real pull requests). The numbers for the pull requests mark them as being really old too, years old. So we need to delete them. So when I try removing one of those dangling refs, for instance:
git push --delete origin refs/pull-requests/364/from
Bitbucket returns an error message stating:
remote: You are attempting to update refs that are reserved for
Bitbucket's pull request functionality. Bitbucket manages these refs
automatically, and they may not be updated by users. remote: Rejected
refs: remote: refs/pull-requests/364/from remote:
First question: Why is Bitbucket being so damned fussy on this issue? It's my git repo, I want those deleted.
Second question: Am I calling the correct command to remove the remote ref?