how to change upstream on Github

I have 3 forks of the same project as 3 remotes in my local git.

  • Mainline – The Repo that was first created. Contains 278 commits after forking.
  • Upstream – Initial fork of Mainline. Freezed in time. [Last commit March 12, 2014]
  • DownStream – Forked from Mainline. Contains 150 commits after UpStream.

I am working on the repo Downstream. The Team maintaining Mainline refused to accept my PR. Hence I want to send a PR to Upstream and be able to send PRs to Upstream.

  • Why is merge-based SCM better than a lock-based system?
  • How can I overlay private files/folders over a public GitHub project working copy (and keep them under separate version control)?
  • Merging without whitespace conflicts
  • GitHub - List commits by author
  • Undo line ending changes in Git
  • Gerrit 2.12 “Cannot Merge” chain of commits ending in merge
  • Just cann’t seem to figure out how to do it on Github.

    NOOB on git. So please point to answer if already answered although I have gone through most similar answers; the reason why this is here is – I don’t want changes on my local git repo alone. I want it on github too.

  • How do I get a list of all the GitHub projects I've contributed to in the last year?
  • Cannot delete GIT tag because of special character “Ô
  • Git bash on Windows - sftp not supported
  • Git pull is very slow.. why?
  • git-svn: how to copy git commits from one SVN branch to another?
  • git access permissions to repository files or paths
  • One Solution collect form web for “how to change upstream on Github”

    To send a GitHub Pull Request you can either use the GUI app or from the browser. Unfortunately there still is no way to send a Pull Request via the CLI.

    Take a look at GitHub’s Pull Request page for all of the possible ways to send a PR.
    https://help.github.com/articles/using-pull-requests

    Most importantly when sending a PR upstream make sure you pull down any upstream changes and resolve any potential conflicts first.

    git remote add upstream git://github.com/user/repo.git
    git pull upstream master

    Git Baby is a git and github fan, let's start git clone.