I'm trying to set up an automatic merge/build system between two project branches, but I'm having trouble with deletions not coming over in my merges. Here's the setup.
I develop on the main branch - add, modify, and delete files. All changes committed to main.
I have a second release branch where the latest work from main is merged in, and a build is made and published.
When I perform the merge - git merge --no-commit -s recursive -Xtheirs main
(run from release) - most things merge over well with a preference for items coming from main. However, files deleted on main do not get deleted on release.
I think this is just how git merge works - if there's no actual conflict, git just keeps the file on release, no deletion. But I need it to be gone. Are there any commands I can run to make this happen? Or can I do it manually somehow?
Update - fun detail: Environment seems to make a difference here. This works as expected on my laptop (things are deleted through the merge), but it's failing when it runs as a Github Action. Sorry if that makes this a totally different issue.