Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a PR without write permission to the repository?

Jérôme Pouiller February 1, 2021

I really don't understand how Bitbucket works.

Let say, there is a repo A. I forked it to create a repo B.

How can I ask to the maintainer of repo A to pull my work (useless to say that I don't have write access repo A)?

For now, I use "git request-pull" for my pull-request, but maintainers would like a more integrated way to that.

In "create a pull-request", Bitbucket does not allow me to set the source URL. It makes no sense. What is the purpose of using git (a distributed SCM), if all the branches must exist in the public repository?

1 answer

1 accepted

1 vote
Answer accepted
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2021

If Repo A allows forks, you should be able to create a pull request from Repo B against Repo A.

This documentation has more information: https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/

Jérôme Pouiller February 2, 2021

I see. Thank you, Tyler.

 

My fork (repo B) already exists. I guess there is no way to declare it as a fork of repo A? I have to save my branches somewhere, remove my repo B, fork the repo A, then push all my branches to the newly created repo?

Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2021

A fork is a bit different than a cloned copy of a repository. When used in apps like Bitbucket and Github, forks establish a relationship between repositories. When that relationship is established, one can create pull requests from a forked repo back to the original repo.

This can be done on the command line using `git remote` but won't appear the same when using the app.

This article explains it quite nicely: https://tharis63.medium.com/git-fork-vs-git-clone-8aad0c0e38c0

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events