Local changes in git
So, I finally made things work on my system. However I needed to locally change some files (playerview.java and all the pom.xmls) for that. Without these changes, Forge does not compile, or does not run/crashes with errors.
I couldn't and likely will never be able to find out where this incompatibility is coming from but it doesn't matter as long as I can make it work.
But here comes the problem.
I have this fix. If I commit this, everything works normal. But, the commit is pushed and then enters merge requests.
This stopped being a problem eventually for an unknown reason but today when I first updated my local master from core (to resolve some conflict) I figured out why.
The change, and its revert (which was only added to the remote) were already merged into core. Since already merged changes don't appear in a merge request, everything was working fine, and as the revert was also merged, it had no effect on core itself.
However, once I pulled from core, I now have the revert in my master and cannot run the game. So now I have to reapply and commit it, which will start to propagate the change into requests again. Which is bad.
So, question, how to keep this change locally (in ALL my branches, so don't suggest using it as a branch or patch, that's not reasonable when you work on dozens of branches) without it getting pushed and become part of merge requests. I tried looking around on the net but it pretty much says "git cannot do that" or suggests really complicated workarounds that do not help.
So how do I do this very basic and important operation in this system?
I couldn't and likely will never be able to find out where this incompatibility is coming from but it doesn't matter as long as I can make it work.
But here comes the problem.
I have this fix. If I commit this, everything works normal. But, the commit is pushed and then enters merge requests.
This stopped being a problem eventually for an unknown reason but today when I first updated my local master from core (to resolve some conflict) I figured out why.
The change, and its revert (which was only added to the remote) were already merged into core. Since already merged changes don't appear in a merge request, everything was working fine, and as the revert was also merged, it had no effect on core itself.
However, once I pulled from core, I now have the revert in my master and cannot run the game. So now I have to reapply and commit it, which will start to propagate the change into requests again. Which is bad.
So, question, how to keep this change locally (in ALL my branches, so don't suggest using it as a branch or patch, that's not reasonable when you work on dozens of branches) without it getting pushed and become part of merge requests. I tried looking around on the net but it pretty much says "git cannot do that" or suggests really complicated workarounds that do not help.
So how do I do this very basic and important operation in this system?