简体   繁体   中英

sync develop branch from release commits in git

We have implemented git model in our project. Developers have access to only develop branch. Release and master branch are in control of build engineer. During release planning stage we copy code from develop branch to release, and increment the version on develop branch.

Developer should create a bug fix branch from release and raise a pull request to merge it into release. So code goes to release branch directly bypassing develop branch.

I can click sync in Bit Bucket to get develop branch up to date, but it would be great to keep the branches in sync automatically.

Is there any way to automatically sync develop branch with the commits from release ? develop branch is now behind release because it doesn't have the merge commits that happened from the pull request merging.

您可以使用BitBucket Webhooks触发对“发布”分支的每次推送,然后将此通知发送到Continuous Integration工具(例如,Jenkins)以将“发布”与“开发”同步。

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