Skip to main content
D-sine
New Participant
March 24, 2025

Make the main branch read-only only when an active branch exists

  • March 24, 2025
  • 1 reply
  • 73 views

When an active branch is open, making the main branch read-only can help prevent accidental changes to the main file. This would reduce the chances of someone (like myself) mistakenly editing the main branch when they meant to be working in a separate branch. Sometimes I don’t even realize I’m still on the main branch until after making changes—this feature would help avoid that confusion.

1 reply

Ben_Beeson
New Participant
August 6, 2025

I would find this very helpful. I am about to kick off a project that will require strict version control and awareness of approved content - being unable to modify the main branch would be very helpful.