A
A
Alex2019-08-13 18:01:44
git
Alex, 2019-08-13 18:01:44

How to block a merge with a branch?

There is a repository. It has master, dev and other branches. But there is a "demo" branch. In this branch, the inoperable version of the program is intended for presentations and so on. I would like to have foolproofing, so that from any branch you can transfer changes to the "demo" branch, but block any attempt to transfer changes from the "demo" branch to any other.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-08-13
@Zarom

Too difficult and costly. Just move the demo project to a separate repository.
If you really want to try it, read git hooks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question