Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Creating PR from Sourcetree leads to old Github repo rather than new Bitbucket repo

Kasper Rugård Thomsen April 5, 2019

Not sure if this is a bug or if I'm missing some setting somewhere, but we've recently moved our repository from Github to a Bitbucket server solution (not bitbucket.org).

Now usually I would be able to create a PR directly inside Sourcetree by right-clicking the branch I want to start from and then choosing `Create Pull Request`.

I can still use this feature, but problem is that Sourcetree opens up my browser pointing towards our old Github repository (which hasn't been removed yet and probably never will).

How do I make the `Create Pull Request` point to our new repository URL?

1 answer

1 accepted

1 vote
Answer accepted
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2019

Hi

Open the Repository Settings, the cog in the upper right of the UI, and then check the settings for the origin remote by double clicking it. I'm assuming origin now points to Bitbucket, if so check the remote is associated with either a main Bitbucket account in Sourcetree or a generic bitbucket account

Kasper Rugård Thomsen April 9, 2019

Thanks that was it - kinda. It was the part `Optional extended integration` that was still pointing towards Github apparently. After changing that to Bitbucket Server I now get to do create PRs towards our new remote :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events