Remerge after reverting failed merge

前端 未结 2 818
庸人自扰
庸人自扰 2021-02-10 19:50

I have two branches in repository: feature and master. I have merged master into feature and pushed result to remote feature branch:

g         


        
2条回答
  •  悲哀的现实
    2021-02-10 20:20

    If you execute the git revert, it will undo the merge, so I do not think the feature contains necessary changes. I will goes to the state before merge only with some additional git log. So you can freely merge it. But, if you do not want the additional git log, you can use git reset.

    1. Check which is your wanted previous state:git log

    2. git reset {commit-id-founded}

    3. resolve your conflicts

    4. merge again

提交回复
热议问题