If you create branch policies on the master branch, it is not possible to use the prepare-release command because the command creates commits on master branch when run.
Any suggestion how to solve this?
Sure: after running nbgv prepare-release, use these commands:
git checkout master
git push origin HEAD:refs/heads/your-topic-branch
git reset --hard origin/master
This will roll back your local master branch to match origin/master after first pushing your local master to origin while renaming it.
Then create a PR from your-topic-branch to the central master branch.
:-D sometimes you just think too far...thanks an sorry to bother you...
Most helpful comment
Sure: after running
nbgv prepare-release, use these commands:This will roll back your local
masterbranch to matchorigin/masterafter first pushing your local master tooriginwhile renaming it.Then create a PR from
your-topic-branchto the central master branch.