I have created a GitHub repo and I want to invite someone else to work on only a branch of that repo so that they cannot make changes to the master or any other branch or merge branches. Simply put I don't want to invite them as a collaborator but to work on only one branch.
I tried to invite them as collaborator and create branch rules but ended up making an error when I tried to push in the master branch as well.