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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have a task to delete over 11k old branches.
I decided to test it manually on the first one and it shows me the error:
I have reviewed similar topics here and I see only 2 things preventing the branch deletion:
1. Some active PullRequests are present
2. Branch restriction
I have double-checked both and there are no PRs and no Branch Restrictions.
It doesn't work for me either through the UI or through the git command:
Please, advise.
Hey Kostiantyn,
Let me see if I can help you with this... It would be good to take a look into this Stack Overflow thread that would be very useful for your current issue!
From the thread:
You need to specify the name of the branch on the remote repository; not the name of your remote branch. So, the meaning of git push origin -d origin/TEST, for example, is that you have a branch called TEST in the remote server origin
That being said, you could try out the below command with the values adjusted from your side:
git push origin --delete test
Thanks, Victor! It helped!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.