Answer the question
In order to leave comments, you need to log in
How can I prevent the merge of the staging branch into the master branch?
How can I prevent the merge of the staging branch into the master branch?
Workflow is like that.
1. For the task, I create a task_*** branch from master.
2. To check, I merge task_** into staging
3. When everything is checked, I merge task_** into master
I want to disable the possibility of merging staging into master to avoid possible curvature.
Also, if, for example, we accidentally merged the staging branch into master, how can this jamb be rolled back.
In fact, a bunch of time-scattered commits appeared in master, but I don’t know how to roll back.
Answer the question
In order to leave comments, you need to log in
Also, if, for example, we accidentally merged the staging branch into master, how can this jamb be rolled back.
git reset
or git revert
a commit corresponding to the merge undoes all commits from the merged branch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question