I have merged master branch into my branch A last month, but then I reverted it. After that, new changes have been commited. Now I want to merge the master branch again, and I found that I couldn't merge the commits of master before "reverting" of the branch A, i.e.
Master: commit1--commit2--commit3-----commit4
\ \
A: commit5--commit6-------merge-revert-commit7-merge
Now git has considered my revert as a new commit and don't take changes in commit1 and 2 in branch A. What can I do?
Similar questions are here:
I reverted a merge in git, now how do I redo the merge?
How do i redo commit after Revert?