Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can a user with read-only access to Git make a pull request?

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.

like image 752
Fernando Magrosoto Avatar asked Oct 02 '13 00:10

Fernando Magrosoto


People also ask

Can I Git clone with read-only access?

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.

Do you need write access to make a pull request?

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."

What is read-only access in bitbucket?

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.

How do I give someone a pull request on GitHub?

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.


1 Answers

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

like image 168
Jeff Avatar answered Oct 23 '22 09:10

Jeff