3

I don't know how this has happened but in SourceTree when I do a pull for my develop branch from my remote (origin) SourceTree never seems to know what the "Remote branch to pull" is any more. Instead every time I have to manually select develop.

enter image description here

Is there a way I can reassign my local develop branch back to my origin develop in Git or through SourceTree so I don't have to keep selecting the develop branch from the drop down list?

I'm using SourceTree 1.9.6.2.

bytedev
  • 8,252
  • 4
  • 48
  • 56

1 Answers1

7

I'm guessing you're not tracking the correct branch Right click your develop branch and select

Track remote branch

Then find origin/develop

This will now be the default branch when you pull.

FullStack
  • 437
  • 5
  • 15
  • Nice one! Didnt even know that option existed. Is that a SourceTree thing or is the tracking stored in Git somewhere? – bytedev Dec 01 '16 at 14:09
  • Happy it worked, it's a git thing, http://stackoverflow.com/questions/4950725/how-do-i-get-git-to-show-me-which-branches-are-tracking-what – FullStack Dec 01 '16 at 14:30