I have the following situation:
- I have 2 branches: X and Y;
- After some time a decided to merge them;
- After merging Y in X, I decided to add one more commit in X;
- Now, in X the last 2 commits are: 1) merge commit, 2) the second commit that I decided to add;
The question is, how can I merge these 2 last commits?
I used git rebase -i HEAD~1, but I can't see the merge commit. Which is the alternative? I do this for making history clear.
git rebase?git rebase ...rectifies history (makes it linear as much as possible). That's why the merge commit disappears. There is no way to redone the merge and keep the history at the same time.