I want to merge two branches but not keep the old branches files.
These are two different versions of a framework and it will be a headache if they actually merge. I need to do this because I need to preserve the commit history of the main branch. This is because I just started a new project and then made it a branch after I fixed all the depreciated things, so most of the commits are on the main branch and not the newer one.
edit: i thought of deleting all the files on the main branch and committing an empty folder then merging, but there must be a cleaner way.