Search code examples
gitforklocalprivate

Git - Having a private local "fork"


I wish to make some private customizations to a public open-source project from GitHub,

How should I make a "private local fork" of it? Just clone it to my computer and commit locally, or there's another type of Git command which fits the process better?

Notice, that I would still like to receive updates from the public repository, while keeping my changes.

Thank you very much.


Solution

  • The process you've described is exactly correct.

    Clone the repo, make changes locally. You won't be able to push unless you have write access, but you'll still be able to pull changes from the remote repo, and merge them with the changes you're making.