Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5786

Advise setting the "upstream" repo in our github 102 tutorial

    • Type: Icon: Task Task
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: about
    • Labels:
      None

      In the github-102 tutorial page for contributors there is a step #2 ("Pull in changes made by others") we instruct to them to run:

      git pull --rebase upstream master

      This will fail if they have not set an "upstream" repository. We didn't instruct them to do so in the github-101 tutorial. Also I think it's an easy mistake to think you already did that or to think git does it automatically.

      I suggest the following addition, shown in red below, that links to the shortest github.com doc on how to do it.

      (2) Pull in changes made by others.

      Pull in changes made by others since you forked your repo and replay your commits on top. (See here for how to set an "upstream" remote if you have not already done so.)

      git pull --rebase upstream master

      The operation “replays” your work on top of the commits that have happened since you began. For more information, see http://git-scm.com/book/en/Git-Branching-Rebasing.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            akira.kurogane Akira Kurogane
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              8 years, 9 weeks, 1 day ago