I merged from a branch into master. Then I noticed that I solved the conflicts in a bad way, so I reverted the merge with the command:
git revert -m 1 *merge-hash*
my colleagues did a few commits after that. I tried to redo the merge, so that I could have a chance to resolve the conflicts in a different way. But, of course, it says that the branch is already merged in. How can redo the merge and resolve the conflicts in a good way?
use interactive rebase to get rid of the merge and the revert commits (simply omit them from the list)
This workflow is better suited to throwing away merges: http://dymitruk.com/blog/2012/02/05/branch-per-feature/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.