Linked Questions
11 questions linked to/from Reverting a git merge while allowing for the same merge later)
1 vote
1 answer
5k views
Git -- Merge then Revert then trying to Merge again
Git can be cryptic sometimes and the documentation out there even more so. My team and I are faced with a very particular situation. For reference, we have a production ready master branch and a ...
1 vote
1 answer
3k views
Resolving merge conflicts after reverting a merge commit
I have merged a feature branch into develop. After that I have found a bug in the feature branch code so I have reverted the merge (branch develop) : git revert -m 1 <merge-commit-hash> git ...
0 votes
3 answers
713 views
Best practices to un-merge a branch such that it can be re-merged?
Let's say I merge a feature branch feature/123 into master, then a problem occurs and we have to remove it. So far I know about two ways to do this: git revert --mainline 1 <commitid> &&...
3 votes
2 answers
221 views
How to merge commits previously rejected/reverted?
I have a branch A that was previously merged into dev and later reverted due to some issues. After a long time, I want to merge again that branch A on dev, but it's not updating the dev branch now. ...
0 votes
1 answer
141 views
Git merge branch differences
I have a question concerning git, which probably has been solved already, but I am not able to find the right keywords. I have two branches master and feature. I merged feature in master to see if ...
1 vote
3 answers
76 views
Subsequent merge after `merge --squash` cause conflicts
Normal merge: $ git merge feature01 $ git merge feature02 Everything works fine. squash merge: $ git merge --squash feature01 # OK $ git merge --squash feature02 Auto-merging src/aaa.js CONFLICT (...
1 vote
2 answers
123 views
Git double revert : How to keep original author?
Scenario: You work in a CI/CD corporate environment where changes by several different teams get merged into master all the time. Sometimes, one of the merges has to be reverted, so that the release ...
1 vote
1 answer
68 views
Git merging a commit that was previously reverted
I accidentally merged a few commits into the wrong branch (development) I reverted this via a revert PR, and then merged into the correct branch (Sprint-7) The team then merged Sprint-7 -> ...
0 votes
0 answers
45 views
Redo a git merge and see the file changes previously reverted
I've merged a project from my abc branch to my xyz branch. I'm used to add the flags no-commit --no-ff in order to view all changes and approve them before commiting and pushing. So I received like 6 ...
1 vote
0 answers
28 views
Re-merging a reverted merge that failed due to bad conflict resolution
First, I have studied this answer but it doesn't quite match my situation. We currently have this: ---o---o---C---M---W <-- develop / ---A---B <-- new_feature When I ...
0 votes
0 answers
25 views
How can I merge the same code that was roll-backed with git revert?
The scenario is as below: Assume that the state of master and develop branches are A, feature/issue-1 branch is B. feature/issue-1 branch is created from master branch. Merge the code of branch ...