{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "gitwash:set_up_fork",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "First you follow the instructions for "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "forking",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "gitwash:forking_hell"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Set up your fork"
        }
      ],
      "level": 0,
      "target": "set-up-fork"
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Code",
          "__tag": 4050,
          "value": "git clone git@github.com:your-user-name/scikit-image.git\ncd scikit-image\ngit remote add upstream https://github.com/scikit-image/scikit-image.git",
          "execution_status": null,
          "out": ""
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Overview"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "In detail"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": true,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Clone your fork to the local computer with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "git clone    git@github.com:your-user-name/scikit-image.git"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Investigate.  Change directory to your new repo: "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "cd scikit-image"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ". Then    "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "git branch -a"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " to show you all branches.  You'll get something    like        "
                    }
                  ]
                },
                {
                  "__type": "Code",
                  "__tag": 4050,
                  "value": "* main\nremotes/origin/main",
                  "execution_status": null,
                  "out": ""
                },
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "This tells you that you are currently on the "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "main"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " branch, and    that you also have a "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "remote"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " connection to "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "origin/main"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ".    What remote repository is "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "remote/origin"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "? Try "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "git remote -v"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " to    see the URLs for the remote.  They will point to your github fork."
                    }
                  ]
                },
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Now you want to connect to the upstream "
                    },
                    {
                      "__type": "InlineRole",
                      "__tag": 4003,
                      "value": "scikit-image github",
                      "domain": null,
                      "role": null,
                      "inventory": null
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " repository, so    you can merge in changes from trunk."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Clone your fork"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Code",
          "__tag": 4050,
          "value": "cd scikit-image\ngit remote add upstream https://github.com/scikit-image/scikit-image.git",
          "execution_status": null,
          "out": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "upstream"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " here is just the arbitrary name we're using to refer to the main "
            },
            {
              "__type": "Link",
              "__tag": 4049,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "scikit-image"
                }
              ],
              "url": "https://scikit-image.org",
              "title": ""
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " repository at "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scikit-image github",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Note that we've used "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "https://"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for the URL rather than "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "git@"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ".  The "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "https://"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " URL is read only.  This means we that we can't accidentally (or deliberately) write to the upstream repo, and we are only going to use it to merge into our own code."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Just for your own satisfaction, show yourself that you now have a new 'remote', with "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "git remote -v show"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", giving you something like     "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": "upstream\thttps://github.com/scikit-image/scikit-image.git (fetch)\nupstream\thttps://github.com/scikit-image/scikit-image.git (push)\norigin\tgit@github.com:your-user-name/scikit-image.git (fetch)\norigin\tgit@github.com:your-user-name/scikit-image.git (push)",
          "execution_status": null,
          "out": ""
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PROJECTNAME",
          "url": "http://neuroimaging.scipy.org"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PROJECTNAME github",
          "url": "https://github.com/nipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PROJECTNAME mailing list",
          "url": "http://projects.scipy.org/mailman/listinfo/nipy-devel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "numpy",
          "url": "http://numpy.org"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "numpy github",
          "url": "https://github.com/numpy/numpy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "numpy mailing list",
          "url": "http://mail.scipy.org/mailman/listinfo/numpy-discussion"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scipy",
          "url": "https://www.scipy.org"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scipy github",
          "url": "https://github.com/scipy/scipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scipy mailing list",
          "url": "http://mail.scipy.org/mailman/listinfo/scipy-dev"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nipy",
          "url": "http://nipy.org/nipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nipy github",
          "url": "https://github.com/nipy/nipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nipy mailing list",
          "url": "http://mail.scipy.org/mailman/listinfo/nipy-devel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython",
          "url": "http://ipython.scipy.org"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython github",
          "url": "https://github.com/ipython/ipython"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython mailing list",
          "url": "http://mail.scipy.org/mailman/listinfo/IPython-dev"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "dipy",
          "url": "http://nipy.org/dipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "dipy github",
          "url": "https://github.com/Garyfallidis/dipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "dipy mailing list",
          "url": "http://mail.scipy.org/mailman/listinfo/nipy-devel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nibabel",
          "url": "http://nipy.org/nibabel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nibabel github",
          "url": "https://github.com/nipy/nibabel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nibabel mailing list",
          "url": "http://mail.scipy.org/mailman/listinfo/nipy-devel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "marsbar",
          "url": "http://marsbar.sourceforge.net"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "marsbar github",
          "url": "https://github.com/matthew-brett/marsbar"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "MarsBaR mailing list",
          "url": "https://lists.sourceforge.net/lists/listinfo/marsbar-users"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scikit-image",
          "url": "https://scikit-image.org"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scikit-image github",
          "url": "https://github.com/scikit-image/scikit-image"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scikit-image developer forum",
          "url": "https://discuss.scientific-python.org/c/contributor/skimage"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git",
          "url": "https://git-scm.com/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "github",
          "url": "https://github.com"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "github help",
          "url": "https://help.github.com"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "msysgit",
          "url": "https://gitforwindows.org/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git-osx-installer",
          "url": "https://code.google.com/archive/p/git-osx-installer/downloads"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "subversion",
          "url": "http://subversion.tigris.org/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git cheat sheet",
          "url": "http://cheat.errtheblog.com/s/git"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "pro git book",
          "url": "https://git-scm.com/book/en/v2"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git svn crash course",
          "url": "https://git.wiki.kernel.org/index.php/GitSvnCrashCourse"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "learn.github",
          "url": "https://lab.github.com/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "network graph visualizer",
          "url": "https://github.blog/2008-04-10-say-hello-to-the-network-graph-visualizer/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git user manual",
          "url": "http://schacon.github.io/git/user-manual.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git tutorial",
          "url": "http://schacon.github.io/git/gittutorial.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git community book",
          "url": "https://book.git-scm.com/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git ready",
          "url": "http://gitready.com/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git casts",
          "url": "https://gitcasts.com/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "Fernando's git page",
          "url": "http://www.fperez.org/py4science/git.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git magic",
          "url": "http://www-cs-students.stanford.edu/~blynn/gitmagic/index.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git concepts",
          "url": "https://www.sbf5.com/~cduan/technical/git/"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git clone",
          "url": "http://schacon.github.io/git/git-clone.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git checkout",
          "url": "http://schacon.github.io/git/git-checkout.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git commit",
          "url": "http://schacon.github.io/git/git-commit.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git push",
          "url": "http://schacon.github.io/git/git-push.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git pull",
          "url": "http://schacon.github.io/git/git-pull.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git add",
          "url": "http://schacon.github.io/git/git-add.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git status",
          "url": "http://schacon.github.io/git/git-status.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git diff",
          "url": "http://schacon.github.io/git/git-diff.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git log",
          "url": "http://schacon.github.io/git/git-log.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git branch",
          "url": "http://schacon.github.io/git/git-branch.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git remote",
          "url": "http://schacon.github.io/git/git-remote.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git rebase",
          "url": "http://schacon.github.io/git/git-rebase.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git config",
          "url": "http://schacon.github.io/git/git-config.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "why the -a flag?",
          "url": "http://gitready.com/beginner/2009/01/18/the-staging-area.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git staging area",
          "url": "http://gitready.com/beginner/2009/01/18/the-staging-area.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "tangled working copy problem",
          "url": "https://tomayko.com/writings/the-thing-about-git"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "linux git workflow",
          "url": "https://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git parable",
          "url": "https://tom.preston-werner.com/2009/05/19/the-git-parable.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git foundation",
          "url": "http://matthew-brett.github.io/pydagogue/foundation.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "deleting master on github",
          "url": "http://matthew-brett.github.io/pydagogue/gh_delete_master.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "rebase without tears",
          "url": "http://matthew-brett.github.io/pydagogue/rebase_without_tears.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "resolving a merge",
          "url": "http://schacon.github.io/git/user-manual.html#resolving-a-merge"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython git workflow",
          "url": "https://mail.python.org/pipermail/ipython-dev/2010-October/005632.html"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "python",
          "url": "https://www.python.org"
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Linking your repository to the upstream repo"
        }
      ],
      "level": 2,
      "target": "linking-to-upstream"
    }
  ],
  "local_refs": []
}