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

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!

Ana 

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 Oct 23, 2018 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...

718 views 3 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you