Skip to content

Instantly share code, notes, and snippets.

@RainerZufall187
Forked from 0xjac/private_fork.md
Last active May 6, 2024 19:15
Show Gist options
  • Save RainerZufall187/4cae9154e8319168d6b00b7a9110a534 to your computer and use it in GitHub Desktop.
Save RainerZufall187/4cae9154e8319168d6b00b7a9110a534 to your computer and use it in GitHub Desktop.
Create a private fork of a public repository
  1. duplicate original repository here: https://github.com/new/import

  2. clone your own private repo

  3. add upstream

    git remote add upstream https://github.com/EXAMPLE-USER/ORIGINAL-REPOSITORY.git
    git remote set-url --push upstream DISABLE

    list all your remotes with git remote -v

    when you push, do so on origin with git push origin.

    fetch upstream git fetch upstream

    and restart github desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment