{
  "__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
        }
      ],
      "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
                },
                {
                  "__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
        },
        {
          "__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
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PROJECTNAME"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PROJECTNAME github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PROJECTNAME mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "numpy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "numpy github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "numpy mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scipy github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scipy mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nipy github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nipy mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "dipy"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "dipy github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "dipy mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nibabel"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nibabel github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "nibabel mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "marsbar"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "marsbar github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "MarsBaR mailing list"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scikit-image"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scikit-image github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "scikit-image developer forum"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "github help"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "msysgit"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git-osx-installer"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "subversion"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git cheat sheet"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "pro git book"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git svn crash course"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "learn.github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "network graph visualizer"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git user manual"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git tutorial"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git community book"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git ready"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git casts"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "Fernando's git page"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git magic"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git concepts"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git clone"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git checkout"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git commit"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git push"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git pull"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git add"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git status"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git diff"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git log"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git branch"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git remote"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git rebase"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git config"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "why the -a flag?"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git staging area"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "tangled working copy problem"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "linux git workflow"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git parable"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "git foundation"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "deleting master on github"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "rebase without tears"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "resolving a merge"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "ipython git workflow"
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "python"
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Linking your repository to the upstream repo"
        }
      ],
      "level": 2,
      "target": "linking-to-upstream"
    }
  ],
  "local_refs": []
}