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.

  • Using Pagelime CMS with Version Control set up (git)
  • Git pull - deleted files
  • Does a Node.js package.json need to be at the root of the repository?
  • Setting up different git roots for different modules in same project - Intellij IDEA
  • TFS 2013.4 build with GIT submodules are failing
  • Can I commit a file with git, but automatically ignore it when doing a git svn dcommit?
  • 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.

  • Diff & Merging between different VCS
  • Issues with Jenkins configuration with GitHub
  • My entire user directory is inside a master branch
  • Is there a way to do “git log -n 100 -from 200”?
  • VS 2013 Built in GIT - Branches
  • How to forbid git commit if there are untracked files?
  • 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.