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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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 Apr 05, 2019


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

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
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,437 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you