I'm new to git and I'm a bit confused about the "right" way of using git rebase.
Is the idea that, once I finish the rebase and conflict resolution process, my history will look as if I didn't change my mind along the way?
Let's say, for instance, that I have commit A and commit B. Commit A makes some important changes but also introduces a function that I later remove in commit B. When rebasing, I encounter a conflict from the function introduced in commit A.
What is the "right" way to respond here? Should I edit commit A to avoid introducing the function altogether and then skip commit B entirely? If so, don't I miss out on important context about the evolution of the code?