I'm working on some collaborative projects with my coworkers. We're starting to adopt Git.
I have a repository in Bitbucket, and I gave read-only access to one of my associates. After he made his corrections and contributions to the project, how can he make a "pull request" if his user profile is read-only? How can he upload his branches to the repository?
The second, taking a user profile writing, as we can prevent its branches merge repository to master without having gone through a "pull request" and that the administrator has decided to accept your request.
You can 'clone' the Repository with either Read+Write or Read-Only access: To look at the code and build individual branches, but if you don't need to upload to the repository, choose Read-Only access.
Anyone with read access to a repository can create a pull request. If you want to create a new branch for your pull request and do not have write permissions to the repository, you can fork the repository first. For more information, see "Creating a pull request from a fork" and "About forks."
If you're on the Free plan and the number of users with access to your private repositories goes over 5, access becomes read-only until you upgrade your account or remove users from a group or individual repositories. You and other repository administrators still have access to the repository.
Under the upstream repository name, click Pull requests. In the list of pull requests, navigate to the pull request that you'd like to allow commits on. On user-owned forks, if you want to allow anyone with push access to the upstream repository to make changes to your pull request, select Allow edits from maintainers.
If your coworker only has read access to the repo, then he'll need to fork the repo, clone it down, make his changes, push them back up, and then make a pull request from his repo to yours.
Obviously you'll have your reasons for restricting permissions, but if he has read-write access to the repo, he simply needs to make a branch on that repo, push it, and he can then issue the pull request.
Here is some additional info from bitbucket on working with pull requests
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With