I am trying to rebase a branch onto a drastically different one. It's a React project. If I merge two branches brutally, I cannot even compile the code. Therefore, I am trying to rebase interactively.
While doing that, I want to make sure that after each rebase step the code base can compile. What would be a way to automatically reinstall node_modules and rerun the project (say I use yarn start to run the project) after each git rebase --continue?
Or if I am not on an ideal route, what would be the right way to merge those two branches?