I am still not clear in this:
I want to fetch code from opensource project and contribute. But I want to make my private changes also, with possibility to contribute with publicly useful parts of code and make private changes in local repos.
I guess, the way will be:
- clone remote repository
- create a branch for remote version of code “project”
- create local branch “customs”, where my customizations will be
- “master” will be my finished customizations
Is then possible to remove some part of original code from my branch “customs”, witch will not be automatically synchronized from “project” again, but I still will be able to do contributions for original project? How can I do that?
You could do the following:
master.masterbranch, and both of your modified branches. I recommend not getting attached to this branch at all but recreate it every time you modify one of the other branches. This will guarantee that this branch (and your local build) will always contain a clearly defined state. I normally use the following sequence of commands to achieve this: