Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

sourcetree

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.

like image 645
bytedev Avatar asked Oct 15 '25 15:10

bytedev


1 Answers

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.

like image 61
FullStack Avatar answered Oct 17 '25 05:10

FullStack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!