We have 2 git branches - master and dev. The master contains files to be deployed to production and dev contains only files that needs modification.
At any point of time the master git branch will have 10+ files where as the dev will have only 1.
Now, the problem is if we merge master from dev it deletes all files and keeps only the 1 file that is available in the dev branch.
What we are looking for is to leave untouched all files from master and update only 1 file from dev (similar to rsync).
Any idea how we can implement delta merge in git?