I have a Java Project on Github, now I changed it to use Gradle and had to change the whole project structure. For this I created a whole new Java Project and copy pasted the code files. As I was expecting I can't just merge the project to the master branch on Github. Is there a way on how to overwrite the old master branch? I dont need the old structure, the code is the same. I also dont want code duplicates on different folders. How can I solve this?
Summary
I want to overwrite the old code with the new code because this is a complex multi-project solution with shared code and multi-platform and there are a lot of conflicts that would be so much more easy to solve if I just keep the new code and throw the old code away.