Solved

Unprotect branch

  • 8 March 2024
  • 2 replies
  • 29 views

Badge +2

How can we unprotect a branch? This branch was protected by accident, and I would like to archive it after merging. I cannot alter the checkbox ‘Protected’.

 

icon

Best answer by Mark Jongeling 8 March 2024, 15:32

View original

2 replies

Userlevel 7
Badge +23

Hi Allard, 

Branches that are the Origin of another branch cannot be set unprotected until all (child) branches of the Origin are deleted. That is because deleting the origin of a branch would leave the branch unable to be merged. The "Origin of other branches” checkbox indicates that.

To resolve this, merge and/or delete all branches of the origin branch and then edit the Protected state.

Badge +2

Hi Mark,

Ah, it was the origin of an archived branch. I have deleted this branch and can now edit the protected state. Thanks!

Reply