Questions tagged [merge-conflict-resolution]
When merging branches in a version control system, a merge conflict might arise. This tag is for questions about how such conflicts can be resolved.
696
questions
0
votes
0
answers
17
views
2 diff commit from same branch but diff merge?
I have created a branch and committed to it, got it reviewed and merged with main branch. Now when I try to push another change into another commit with the same branch now I see 2 commits on the ...
0
votes
0
answers
23
views
Bitbucket branch misalignment and conflicts
I am experiencing strange behavior of Git/Bitbucket.
We are a small team of developers working using following workflow:
All features are developed in branches started from master.
And we have a ...
0
votes
1
answer
21
views
Unify equal values in different column in pandas?
Suppose I have a column like so:
COLUMN A
abc
dbe
dbe
abc
abc
ajk
dbe
abc
I expected the follow output:
KEY
abc1
dbe1
dbe2
...
0
votes
1
answer
61
views
Merge conflict in a fast forward merge
I have two branches B and A . B is the base of A . A1 is the first commit of A. Then I have several commits A2, A3, A4 and two merges back to B as shown below :
B1 ---------B2----------- B3 (Branch B)...
0
votes
1
answer
99
views
How can I resolve this yarn.lock conflict problem?
I've been developing next.js project using yarn and bitbucket. When I try to merge my branch to origin, but conflict problem is occurred. It is from yarn.lock file. There are many diffs between origin'...
0
votes
1
answer
46
views
Can liquibase be used to manage two-way changes?
I am new to liquibase, and want to check if this is the ideal tool to handle this. Please suggest others outside of liquibase too, if appropriate.
Usecase:
We have a property file that the user can ...
0
votes
0
answers
20
views
VS Code on Mac doesn't have merge conflict acceptance tools?
According to the documentation, VS Code should have a merge conflict review that allows you to accept the merges:
However, I can't seem to access this functionality. If I open the file with the merge ...
0
votes
0
answers
48
views
Gitlab merge conflict button don't show
I try to manage a merge request from a branch to a master branch using GitLab.
Until some days ago, when conflicts rise I can manage them with GitLab UI, using button Resolve merge conflict, but now I'...
0
votes
0
answers
12
views
How to fix unity package error from a git merge? [duplicate]
So this unity project is from a gitlab repositiorty so I'm aware this is a merge error since I had to merge a seporate brnach to the main and somehow came out with this error and I'm not sure how to ...
0
votes
0
answers
74
views
GitLab issue: No conflicts in the commit but still get "Merge blocked: To merge this request, first rebase locally"
We always get this message in Gitlab: "Merge blocked: fast-forward merge is not possible. To merge this request, first rebase locally" even when we do not have any conflicts in our commits.
...
-1
votes
2
answers
43
views
Master polluted, make master clean as well clean branch which are in sync with polluted master
Problem Statement:
I have 2 main branches: master(PROD) & dev(UAT).
Whenever my team receives a change request on the application, we create a branch from master do our changes, and before merging ...
1
vote
1
answer
68
views
PR from release to main has conflicts
Very recently we moved over to a "Git Flow" approach, where we make use of develop, release, and main branches. Recently we created a main branch from the same commit as the most recent ...
2
votes
1
answer
62
views
How to resolve merge conflict when one branch has modified a file and the other has moved it (but git thinks it has been deleted and a new file made)
I am trying to pull master-dev into my branch. My branch has moved a file (git sees this as the file being deleted and a new file made), but the same file has been modified in master-dev.
I have moved ...
0
votes
0
answers
17
views
Resolve Merge Conflict
I need help in resolving merge conflict in git pull from GitHub, I did the following on my current branch, I did the following. Development is a branch where all our team members push code and we pull ...
0
votes
0
answers
13
views
BitBucket Merge conflict edit on one check-in and deleted file on other check-in
I am at a client which is the first time using bitbucket and I only really know DevOps.
The Bitbucket users that know this well have quit and the two people that created the merge conflict are gone
I ...
0
votes
0
answers
27
views
How do I resolve conflicts all at once? [duplicate]
I intend to resolve all of these using the version I have with my own branch. It's tedious to tap that dropdown and choose my branch for every single one of them!
So, how do resolve all 987 conflicts ...
-1
votes
1
answer
59
views
Merge conflict in Git. Need local env prior to Git Stash + Pull
I used the following git commands:
git stash
git pull
After pull, the command line displayed:
Auto-merging ...path/ConflictFile.xxx
CONFLICT (content): Merge conflict in ...path/ConflictFile.xxx
...
0
votes
0
answers
22
views
How to restore VSC conflict highlighting?
So in visual studio code when you merge and have conflicts, visual studio code will highlight the current change in green and the incoming change in blue. However when you have different conflicts in ...
0
votes
1
answer
81
views
How to fix merge conflict that involves commenting out one line, and un-commenting another?
I wanted to comment out <AppNavigator /> and un-comment <OnboardingNavigator />. Can someone explain why this is a merge conflict and how to resolve it? This is when I'm trying to do a PR ...
0
votes
1
answer
20
views
Detect same lines when git merge results in confict
I have a branch A and two child branches B1 and B2, that were created from it.
If I add single text/code line to a file in branch B1 and commit that change, then add the same line to the same file in ...
1
vote
1
answer
28
views
Facing issues merging develop to release branch after feature branch got merged to release directly
The way our repo is set up is feature branch to develop to release branch to generate production build. i.e
feature -> develop -> release
But over the weekend, team merged some hot fixes ...
0
votes
0
answers
23
views
resolve folder name change conflicts bit bucket
I have a master repo that contains my application. I then fork the branch to change my monolithic architecture to service-based architecture, but in between, one of the application folder names is ...
1
vote
3
answers
37
views
Resolving only some files in a git merge conflict
What if there's a merge conflict with two files.
Only person A is familiar with file A
and only person B is familiar with file B
I'm new to git.
So would it be possible for person A to resolve the ...
0
votes
1
answer
46
views
Need clarity with git workflow involving git pull and pull requests
The above diagram gives us a good idea of git pull and git pull --rebase.
I'm getting confused about one thing here. Let me elaborate -
1. Case 1 -> git pull --rebase origin master
My local master ...
1
vote
0
answers
29
views
Git ignore whitespaces for specific file types
When merging git branches that produce a conflict I'm ignoring whitespaces by using:
-Xignore-all-space
But now I need to resolve ignoring whitespaces for some type of files and not ignoring ...
1
vote
2
answers
132
views
See changes in a merge commit that do not appear in any parent
A merge commit can potentially introduce changes that did not appear in any parent commit. For example, when making changes to resolve conflicts or in the case of evil merges. Is there a git command ...
0
votes
0
answers
85
views
Github Desktop not displaying merge conflicts interface
I've always used github desktop for viewing my merge conflicts and also solving them, but recently that beautiful and bright interface has suddenly disappeared and I just can't find a way to get it ...
0
votes
0
answers
51
views
How to have Git auto-accept merge conflicts in untouched files properly
I start by cutting a feature branch off of master. Lets say this branch is named feature. We also have a development branch which is currently 5 commits ahead of master.
When I finish my feature ...
1
vote
0
answers
133
views
Refusing to merge unrelated histories when checking out submodule - GitHub Action
I'm trying to create an action that runs all test in a specific repository.
In this repository I have a submodule that needs to be checkout when the action runs.
This submodule repository is private ...
1
vote
2
answers
38
views
I publish my new branch to the remote repo then try to merged into master branch but says merged conflict
I clone a repository in my machine and created a new_branch and commit 2 changes and tried to push my new branch to the repository.
git push origin new_branch
Then I tried to merged the new branch in ...
1
vote
1
answer
36
views
Are git conflicts less likely if I edit before or after somebody else's changes?
A colleague has a ticket that will be merged after mine (for the sake of the question, assume that's not changeable), and I need to make a change to a file they've changed.
Say the file with their ...
0
votes
1
answer
467
views
Resolve Merge Conflicts in Bitbucket where I do not have permission to push to either source or destination branch
We have a setup where we do PRs into develop branch ... On merge this gets deployed to our staging/test environment ... I do not have permission to push changes directly to this branch ... There is a ...
0
votes
1
answer
69
views
Why are lines missing during git merge
I'm attempting to merge master branch into new-branch.
I noticed git seems to be eating relevant lines in the output conflicted merged file. What should i be doing differently to achieve the expected ...
1
vote
1
answer
794
views
git 'unmerged paths' - resolve strategy needed
was working on a featurebranch (spun off from main) for some while, commited it and want to merge it back to main.
Unlike expected I get:
error: Merging is not possible because you have unmerged files....
0
votes
0
answers
23
views
Auto syncing of develop and master branch
We are raising PR to merge from branch A1 to develop and then on merge it goes correctly to develop however we are seeing that same piece of code also goes to master. We have a process of raising PR ...
1
vote
1
answer
275
views
List files that were part of a git merge conflict resolve, regardless of changes
When a git merge conflict is resloved by keeping the current branch version, no files are listed when running git status, because no files were changed.
Of course, if however the other branch version ...
0
votes
1
answer
111
views
Prevent Git Fast Forward Automatic Merge
Questions context example:
A branch B was created from A branch
In branch B a file called XPTO.txt was created and edited several times (several commits)
Another branch C was created from branch B ...
0
votes
0
answers
63
views
Reg; conflicts found while merging request github
We have found below conflicts while merging from bitbucket master branch to github master branch in one of the repositories.
we need to merge in master branch in github how to resolve these ...
1
vote
1
answer
110
views
`git merge` reports conflicts for files that I have not changed
I'd like to understand what's going on with the following (attempted) git merge.
I have a fork of llvm where the main branch is upstream's llvmorg-12.0.0 tag, plus:
Two new files.
Two small changes ...
0
votes
1
answer
70
views
Why I'm getting conflicts when I merge the 3rd level branch to master after merging the 2 second level
I always have an issue when I got this scenario in my work
0 <- 1 <- 2 <----------- 9 <--- master
\ /
3 <- 4 <- 5 <------ Feature/A
...
0
votes
0
answers
46
views
git resolve whitespace conflict during merge
I have a big merge ongoing and am wondering how I can resolve white space conflicts while the merge is ongoing. I would like to keep the resolutions that I have made already but apply the -Xignore-all-...
1
vote
1
answer
72
views
Git workflow issue - lots of merge conflicts where files haven't been changed
Here's the workflow that our teams are using:
main branch which to which feature branches are squash-merged; this is handled by team A
big-feature branch which is used by team B which was branched ...
0
votes
2
answers
235
views
git merge resolve conflicts of files with same names
How do I omit conflicts if files have the same name and the same contents?
I just want to deal only with different files(same name, different contents).
I have a modified android kernel. Vendor has ...
3
votes
3
answers
587
views
When I `git pull --rebase` and get a conflict, how do I `git show` the other person's commit?
So I do git pull --rebase, and there's a conflict. Ok, fine, let's resolve it.
I run git diff and the merge conflict diff is a bit confusing. I think I need to git show the two commits that are being ...
0
votes
0
answers
46
views
How to rebase on branch that is not merged yet
I worked on feature1 branch - 5 commits, then create a merge request (with commits squash) into story branch and hand it over to code review.
The review and merge is not done immediately, so I create ...
2
votes
3
answers
445
views
Missing Azure Devops Complete Pull Request button when there are conflicts
My pull request has conflicts but I can not find anywhere to resolve them in either DevOps or VS2019
There is More Actions Tool Tip
Here are the actions
The docs indicate that VS2019 has some Pull ...
0
votes
0
answers
40
views
InelliJ IDEA merge command line tools usage
I'm trying to launch IntelliJ IDEA merge with the help of command line tools. In the instructions provided on: Jetbrains merge command line tools they specify 3 way merge with base, and suggest to ...
1
vote
1
answer
62
views
Git merge resolve conflict readability
Here I simply the situation.
I have a JSON file in master, with the content like this
[
{
"aa": {
"type": "fixed",
"something": {
&...
1
vote
0
answers
59
views
solve merge conflicts in Xcode like VScode
I have a question about solving merge conflicts in the Xcode project. I used to write JS in VScode and at that period I can just select either "accept incoming changes" or "keep ...
0
votes
0
answers
21
views
i am downloading video from links but i get 2 links 1 audio and 2nd video of same video
same video 2 links one audio and 1 video
PLEASE TEACH ME HOW TO MERGE THOSE TWO CODES TO GET VIDEO WITH AUDIO
https://manifest.prod.boltdns.net/manifest/v1/hls/v4/clear/6206459123001/99251d06-d45d-...