Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Disable possibility to merge a branch into an other branch

Is it possible to disable possibility to merge one branch into another? For example, I have a branch named develop and feature branches named A, B and C.

I want to make impossible to merge develop into A, or into B or into C:

git checkout A
git merge develop 

should return an error.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

No, this is not possible in Git. Instead you would manually review suggested changes to your repo and reject those that you don’t like (for example, somebody dragged changes from develop to branch A).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading