How do I get local branches to track remote ones in SourceTree 2.0.20.1?

Please forgive the general nature of this question, but I am a newbie when it comes to Git/SourceTree.

Before I updated SourceTree, I had a fairly conventional setup: local develop branch tracking remote origin/develop and local master tracking remote origin/master.  (At least this is what I think I had.)

I have used all the steps of the new installer and it has left me with just a local master branch.  When I right-click it, there is no option to track a remote branch.  I am using BitBucket for the remote.

Can anyone please point me at a guide for how to set up local/remote tracking 'properly'.

Any help at all would be very gratefully received.

1 answer

This widget could not be displayed.

I think I have solved this.  The trick was to delete the local project, leaving the containing project directory in place, and then use the SourceTree Clone option to get the whole repository 'fresh' from the online BitBucket.

What I describe above got me a local master tracked by a remote origin/master.  I then created a local develop branch based on the master.  Right-clicking this allowed me to set its remote tracking branch to origin/develop.  I did get an 'Are you sure?' warning dialog, but I think (hope) I can safely ignore that.

This seems to have put me back where I was before the upgrade.  Hope this helps if anyone has the same problem.

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,323 views 8 11
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