Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,354 views 127 26
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