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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

176 views 20 8
Join discussion

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