nashwan nashwan - 3 months ago 35
Git Question

Git SourceTree has "forgotten" remote branch to pull when pulling local branch

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


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.