简体   繁体   中英

How to stop a branch merged with develop branch to be merged with master branch?

During coding I create a feature branch from the develop branch. When everything is OK I merge this feature branch to develop branch.

Later for production deployment I merge this develop branch to maste r branch on production.

Is there a way to prevent a feature branch merged in the develop branch to be merged with master branch. That means when I merge my develop branch to master branch that particular branch should not be merged with master branch?

On my staging server I use develop branch and on production I use master branch.I had a task/code change that should be on staging only. It should not go to production that is on master branch.

I use bitbucket and source tree for the version control.

This is not possible indeed. But if you have already merged your feature branch in develop branch and for some reason if you don't want to merge changes to master branch, you can cherry pick changes from develop to master means you can put specific commits to master.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM