git - How to protect directory against getting committed changes when merging? -


i have 2 directories in our git repo, huge number (about 400) of commits divided between file updates in 2 directories, although no commits known include changes both directories within same commit.

we need merge commits our feature branch master branch only one of directories, leaving files in other directory untouched. means don't want half commits applied master.

what recommended way of doing that?

you can't merge individual commits, can git cherry-pick individual commits onto master branch. use git log figure out sha1s of commits want on master, , use git cherry-pick apply them.

it's not ideal solution, since cherry-pick introduces new commit that's different original commit, , therefore you'll have duplicate commits on master , feature branches. try avoid using cherry-pick. seems solve problem, proceed caution.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -