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

How to use sourcetree to integrate bitbucket with TFS?

I could probably have worded the question above better, so allow me to explain.


We are working on a project and company policy is use TFS as our source control provider.

However, a client has requested that we also push updates to bitbucket which they use.


I have been pointed towards sourcetree as a way to do this.  Unfortunately, I haven't been able to find any clear documentation on how to do this.  

How would I use source tree to clone our project which is currently up on TFS?  (Clone may be the wrong term, in any case, we want changes to be updated on both TFS and bitbucket).


Thank you

1 answer

0 votes
Ana Retamal Atlassian Team Oct 11, 2017

Hi Remrick, if you're using Git or Mercurial in TFS, then this should be easy to achieve. Before I continue, note that Sourcetree is just a visual interface for Git and Mercurial, so it won't be really necessary to use it if you're comfortable enough using the command line.

Once you decide whether you'd like to use Sourcetree or not, the steps to follow are the same:

  1. Clone your repo locally, this means you'll have a copy of the repo you have in TFS in your computer
  2. Push this repository to Bitbucket
  3. When the remote repository changes, you can pull these changes to your local copy and then push these changes to Bitbucket again.

If you need instructions on how to perform those operations, you can check our documentation at Adding remote hosted repositories,  Clone a repository and Commit, push and pull.

Hope that helps!


Hi Ana,

Thanks for your reply.

Does this mean that I will have to use Git or Mercurial in TFS? 

At the moment, we are using TFS for version control (Team foundation version control for centralized version control).  Will we need to "convert" this into a git first before being able to push changes up to bitbucket?  Or is there a way to do it directly coming from TFVC (team foundation version control)?

Apologies for the questions - I have no experience using git previously and so wanted to be sure.

Thank you again

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,989 views 0 12
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