merge - Git merging issue -


following git flow follow. problem have restrict people re basing feature branch developer branch. should let people rebase feature branch release branch. restriction should when user trying merge feature branch created developer branch or re based developer branch merge should rejected. can done? enter image description here

hope understood question. looking way restrict developers creating feature branches develop.

below code snippet identify parent branch of feature branch. may have add server side git pre-receive hook script.

branch=`git rev-parse --abbrev-ref head`  parent_branch=`git show-branch -a 2>/dev/null | grep '\*' | grep -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'` if $parent_branch="develop";     echo "please use release base branch"     exit 1 fi  

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -