Get Off My Lawn

Adventures of a Curmudgeon

NTS: Forking Private GitHub Repo

Steps to fork your own private GitHub Repo

  1. Clone your repository into a new working directory.
  2. Create new private repository in GitHub; keep the resulting page up because you’re going to need the new repository url.
  3. Update project’s origin remote.
  4. Push changes up to GitHub.
  5. View the new repository in GitHub.
  $ git clone [repository url] [new name]  $ cd [new name]  $ git remote add xorigin [new repository url]  $ git remote rm origin  $ git remote rename xorigin origin  $ git push -u origin master