5

I just updated my GitHub Desktop version from 3.3.6.1 to the latest. I was able to update my remote branch by using Fetch origin but I don't see Pull Origin button to update my local branch.

enter image description here

Not sure how to get it. I did some research but wasn't able to find out the Pull Origin button.

Thanks

Sascha Frinken
  • 3,134
  • 1
  • 24
  • 27
David
  • 257
  • 1
  • 8
  • 24
  • A pull is a fetch and then a merge. Click the fetch origin button? – evolutionxbox Jul 03 '18 at 17:42
  • I am aware of that but it never updates the local repo and this is what all I am asking – David Jul 03 '18 at 17:45
  • It might be that there’s nothing to update? Try confirming using the command line. – evolutionxbox Jul 03 '18 at 17:53
  • There is an update. I've checked the merge request and my local is not getting updated by just pressing the fetch origin. – David Jul 03 '18 at 18:38
  • Have you confirmed this on the command line? Maybe there’s an error which github desktop isn’t reporting? – evolutionxbox Jul 03 '18 at 19:17
  • My fellow Developer has merged his changes, it is confirmed that there is a change and I need to update my local repo. In prior versions it used to say update from now in the latest version there should be pull origin to update my local repo. – David Jul 03 '18 at 20:20
  • It’s not that I don’t trust your fellow developer, but could you try these things in the command line and see what the result is? – evolutionxbox Jul 03 '18 at 23:01
  • 1
    I guess the problem was with the UI, not sure what and why. I reinstalled it and created a local repo and after fetch origin i was able to get the Pull origin to update my local repo. Thank you for following up on this. – David Jul 05 '18 at 17:44
  • Fab. Consider answering the question with your solution? – evolutionxbox Jul 05 '18 at 17:45

1 Answers1

8

I was having troubles understanding how Fetch origin works on GitHub Desktop, but eventually figured out that the origin here is the fork.

To fetch and merge changes from the remote, one should update the Primary remote repository (origin) field on Repository -> Repository settings with the remote's link.

At this stage, the Fetch origin works as expected and shows the Pull origin button to merge the changes from the remote into one's fork.

Jean-François Corbett
  • 37,420
  • 30
  • 139
  • 188
arunsathiya
  • 168
  • 4
  • 9