I have three branches in the repository.
master
slave 1
slave 2
there is one package.json
file. It should be different in each of the branches. But if I run the git merge master
command. These two branches merge into one. How to exclude package.json
from merging branches so that each branch has its own version?
add:
I have a sequence
git checkout slave 1 && git merge -Xtheirs --no-edit master && git push && git checkout master