I have phabricator set up. Being relatively green with git, what’s the sane/proper way to make sure that I can have my own configuration files (and possibly some hacks in other files) coexist with what comes in from upstream?
I have phabricator set up. Being relatively green with git, what’s the sane/proper way
Share
Keep your changes on a separate branch. Let’s assume that you track the upstream changes in a
vendorbranch, and you work on themasterbranch. Then you would do something like this to bring in upstream updates:Switch to the
vendorbranch:Pull in the new updates:
Switch to your
masterbranch:Merge the changes:
Fix conflicts and commit.
Going into a little more detail…assume your upstream repository is
http://github.com/spiffy/project.git, and you want to track themasterbranch. Clone the repository:
You want to track the upstream changes in a
vendorbranch and doyour own work in the
masterbranch. Start by renaming the existingmasterbranch tovendor:This preserves the configuration set up by the
cloneoperation:And now create your
masterbranch:And have at it!