Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upstream pulls with the GitHub desktop client

I can't seem to find an option to perform a 'git pull upstream master' using the Mac desktop client for GitHub (currently 1.2.13). Is that supported yet outside of the command line?

like image 953
Joost Schuur Avatar asked Jul 09 '12 11:07

Joost Schuur


People also ask

How do I fetch upstream on GitHub desktop?

On GitHub Enterprise Server, navigate to the main page of the forked repository that you want to sync with the upstream repository. Select the Fetch upstream dropdown. Review the details about the commits from the upstream repository, then click Fetch and merge.

How do I Upstream GitHub?

The easiest way to set the upstream branch is to use the “git push” command with the “-u” option for upstream branch. Alternatively, you can use the “–set-upstream” option that is equivalent to the “-u” option. As an example, let's say that you created a branch named “branch” using the checkout command.


1 Answers

The Github client does not support this feature as far as I can tell.

The way to work around this you can change the primary repo to the upstream repo that you want to use and then change the repo back to your own.

  1. Go to the settings tab
  2. Change the "Primary remote repository" to the upstream repo you want to use.
  3. Press "Update Remote"
  4. Press "Sync Branch"
  5. Change the "Primary remote repository" back to the original forked repo you were using.
  6. Press "Update Remote"

And you're done.

enter image description here

like image 177
Paul Sheldrake Avatar answered Sep 19 '22 06:09

Paul Sheldrake