Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create an upstream repo in the organization; example: gpii/nexus
    • Important: Make sure this upstream repo is initialized with a placeholder README.md, or it will not be cloneable and forkable with the steps below.
  2. On GitHub, rename the original repo to avoid confusion with the upstream repo, and to enable clean forking of the new upstream repo
    • For example, rename simonbates/nexus to simonbates/simon-nexus
  3. Delete any local clones of the origin repo (or rename and update the origin remote – any local clones will still point to the previous GitHub repo URL)
  4. On GitHub, fork the upstream repo
    • For example, fork gpii/nexus to simonbates/nexus
  5. Clone the fork onto your computer
    • For example, simonbates/nexus
  6. Add the original repo as a remote in the cloned fork
    • For example, in the local clone of simonbates/nexus, add simonbates/simon-nexus as a remote
  7. Merge the work from the original repo into the new clone
  8. Things to check that may need updating:
    1. Repo references in package.json or license statements - these should be updated to be references to the new organizational repo 
  9. Push the changes from the local clone up to GitHub and make a pull request

...