git partial merge, not whole branch

There are a couple things you can do.

One, you can cherry-pick the changes you want, which applies only a single commit. For example, if there’s a change that only touches config.xml, you can cherry-pick it with

$ git cherry-pick $COMMIT_ID_YOU_WANT

You could also just grab config.xml from the development branch:

$ git checkout testing
$ git checkout development -- config.xml

That’ll get you the same version of config.xml that exists in the development branch, but note that it won’t pull in the history of changes to the file.

Leave a Comment