Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: couldn't find remote ref

I am trying to pull changes from a remote branch that I made sure it exists, but when I use source tree to pull from it , this message keeps popping up "fatal: couldn't find remote ref" , how can I solve this?

like image 714
Ahmed Bahgat Avatar asked Jul 04 '26 21:07

Ahmed Bahgat


1 Answers

Start with, in command line under your repository folder:

git branch -avv

If you see your branch without an associated upstream branch, you can add one:

git branch -u myBranch origin/myBranch

Then SourceTree should be able to pull it.

like image 56
VonC Avatar answered Jul 06 '26 14:07

VonC



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!