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.
773
questions
0
votes
1
answer
68
views
How to set utf-8 as default encoding for pull request merge conflict extension in azure devops?
How to set utf-8 as default encoding for pull request merge conflict extension in azure devops?
Checked the pull request merge conflict extension and azure devops, didn't found any option to set ...
0
votes
1
answer
21
views
Git conflicts between two protected branches
So I have three branches in total deploy release and main
Each of this represents a environment to be deployed on
Branches: deploy --> release --> main
Environments: dev uat ...
0
votes
1
answer
32
views
Merging two protected branches in gitlab after squashing commits
So the situation is this: we have two protected branches in gitlab "develop", and "test" (over which we dont have permissions to push onto without merge requests), we merged the ...
0
votes
1
answer
47
views
Why does git checkout --ours/theirs not work?
I want to update my template from the source, so I use these commands:
git remote add template https://github.com/ObsidianPublisher/template-netlify-vercel
git pull template main --allow-unrelated-...
0
votes
1
answer
44
views
Forcefully set files status as "unmerged" in a Git repository
When I merge a branch into another one, and get conflicts, Git tells me some files are unmerged. For example:
% git status
On branch test-merge
You have unmerged paths.
(fix conflicts and run "...
0
votes
1
answer
58
views
Git - how git merge works
I am trying to learn about git merge and I am facing a merge conflict.
Here is my branch structure:
I am modifying and tracking just one file file.txt.
At commit C, this is the content of the file is
...
0
votes
0
answers
14
views
How to regularly merge a GIT repo A into repo B, and keep the merge conflicts to the minimum despite features differences?
I have a base repo A, with most of my colleagues working on it.
For a customer, we had some special features, so we copied and created repo B, and added a few custom features.
Now, we would like to ...
-1
votes
1
answer
17
views
How to disable `npm-merge-drive` in git merge
When I cherry-pick some commit that has conflicts with package-lock.json file, the npm-merge-drive run
when it failed the cherry-pick fails, how can I remove it?
1
vote
1
answer
35
views
pulling from a repo is causing merge conflicts with 8 year old files, despite regularly pulling from this repo
Context
I am developing alpha.
alpha is a clone of beta (not a fork).
beta is an ever evolving project that I am tracking.
Problem
Once a month, I run git pull beta master to get the latest changes ...
0
votes
0
answers
7
views
Issue installing nbdime
I need to install nbdime to fix a merge conflict in a jupyter notebook.
I ran the following command:
pip install nbdime
However, this failed while trying to uninstall a package called 'terminado':
...
1
vote
1
answer
48
views
How to handle multiple reviews on several merge requests?
I have worked on a GitLab repository for several months. In my institute students have to wait for a supervisors review in order to be able to merge into main. My Reviewer did not have time for ...
3
votes
1
answer
104
views
Constant merge issues from release branch to master and back to development
We have really weird issues with our merge strategies. We are following git flow branching strategies with master, development, feature and release branches. The one thing we haven't done all the time ...
0
votes
0
answers
34
views
How git detect conflicts when merging
I don't understand in what condition do git consider there are conflicts when merging two local branches.
When I create a file a.py in branch test1, then merge it to another branch test2, and then ...
0
votes
1
answer
56
views
Git simple conflicts automatic resolution
According to JetBrains IDEs (IntelliJ Idea, etc.), simple conflicts means non-overlapping character changes within the same line:
For simple conflicts (for example, if the beginning and the end of ...
0
votes
0
answers
9
views
How to view merge conflict resolution window in GitUp (not github)
In GitUp, while merging changes from one branch into another branch (with conflicts), the UI just shows that there are merge conflicts in an alert message. Is there a way to view the conflicts?
Tried ...
-1
votes
1
answer
24
views
Github: Why revising a csv file in a branch results in a conflicting merge?
I'm sorry for this very basic question but I can't understand why revising a csv file that I pulled from the master would create a conflict in my pull request.
What happened is, I have a collaborative ...
0
votes
0
answers
30
views
git merge conflicts due to reverting: what strategies can be used to avoid such conflicts?
this images describes the issue we were facing
branch k had merged b2 into itself, which was a mistake, we actually did not want any b2 related changes going into k.
then k merged itself into b1, ...
1
vote
2
answers
287
views
How do I view code while resolving merge conflicts in PyCharm
Say I have a repo with 2 files:
source.py
def foo() -> int:
return 1
conflict.py
from source import foo
def bar() -> int:
return foo()
Now, I create and try to resolve a merge ...
0
votes
0
answers
21
views
How to solve "branch ahead of origin/<branch_name> by X commits" and discard those X local commits? [duplicate]
I am new with Git, but I would need some help. How to get rid of those X commits? I don't want to push those local commits, since I don't have the rights to push into that specific branch (it's ...
1
vote
0
answers
32
views
Can a merge conflict occur in Git depending on the order of the branches merged?
Let's assume we have four Git branches: main, feature-a, feature-b and feature-c (where the feature branches are all originating from main). I know that feature-a and feature-b contain conflicting ...
0
votes
0
answers
49
views
Moving a line is not atomic in git
Imagine the following git flow:
R1 refactoring #1
/ \
/ \
---A------M1---M2--- master
\ /
\ /
R2----- refactoring #2
The code ...
0
votes
0
answers
64
views
Merge Error = merging customers ... An unexpected error has occurred
Quite often now, when merging customers, I get the following error message from NetSuite:
The merge of the entity '????' was blocked for the following reasons: An unexpected error has occurred.
Any ...
0
votes
0
answers
46
views
merge complex conflicts git/github
I want to merge a branch into another one, but it can't be merged automatically because there are some conflicts. It's indicating that the conflicts are too complex to be resolved on the web interface....
-3
votes
1
answer
50
views
How to completely replace dev branch into master? (Without having to resolve conflicts)
My master branch is very out to date. Like 100+ commits behind dev, is not longer needed anymore. If I merge with dev there are many conflicts I don't need to resolve. Plus, I have created a master-...
0
votes
0
answers
21
views
incrementally rebase onto latest master
Let's say over past 8 hours, 2 PRs have merged to master. They are of medium size, not so huge, but not so small.
I'd like to incrementally rebase onto latest master. i.e., I'd like to rebase onto ...
-1
votes
1
answer
135
views
Squashed PRs are causing major conflicts in my stacked branches
As I work I create a branch (branch1) then I create a PR (pr1), then I keep working on the feature which is based on the code in that branch1. I create a branch (branch2) off of my branch (branch1). ...
0
votes
0
answers
17
views
Problem with merging feature branch on develop branch
I have questions about git merging. I'm a student, and currently working on a project with four colleagues. So, I tried to merge my feature branch on develop branch, and got some conflicts that i didn'...
0
votes
0
answers
84
views
How to undo a resolved merge conflict?
I made a Pull Request to merge my branch into master, and there were merge conflicts, so I clicked on 'resolve conflicts' button in GitHub, and there were a lot of conflicts, so I just started ...
2
votes
1
answer
31
views
Confilict issue in merge
I have following branch with respect to each environment for my Application.
Dev (Dev Env), UAT (UAT Env), Prod (Prod Env), Master Branch (This is in sync with Prod Branch and this acts as the Golden ...
0
votes
1
answer
199
views
Git merge commit lost a parent, now I have to resolve the old conflicts again
I have 2 branches, say "dev" and "feature". A while ago I merged dev into feature resolving a ton of merge conflicts. I don't remember how it happened, but the merge commit lost ...
0
votes
1
answer
38
views
Cannot resolve conflict on Git (remote is 1 commit ahead)
A project that I'm working on has around 200 submodules. I made some modifications in my local repo, around changes to 150 submodules without commit & pushing.
But it turns out that just when I ...
0
votes
1
answer
464
views
"This branch has conflicts that must be resolved" but no option to resolve
I have only seen this question asked about pull requests, but I have not made a pull request. Normally if I have this issue with a PR, I go to the PR and it tells me exactly what files are creating ...
1
vote
2
answers
35
views
How can I manually merge out-of-order data into a sequential format in Apache IoTDB?
Are there any way to trigger the merging of out-of-order data into sequential data besides restarting Apache IoTDB? I think flush can only flush data and write it to disk, but it cannot let out-of-...
3
votes
0
answers
177
views
VS Code merge tool missing buttons
I am using the merge tool in visual studio code 1.76.2. For most of the conflicts it shows convenient buttons above each side: “accept incoming”, “ accept current“. But in a handful of them, mostly ...
0
votes
1
answer
88
views
Git: deleted filed in ours but not in theirs prevent "git checkout --ours ." from working
I have fetch content from a remote repository.
When I try to do git merge I get the following message:
CONFLICT (modify/delete): mimic_pipeline_tools/data_cleaning_scripts/dc.log deleted in HEAD and ...
1
vote
1
answer
77
views
Which branch should be merged into which when a merge conflict occurs in git
I was wondering what the best approach to resolving merge conflicts in a certain scenario was. In this scenario there are two developers(A and B) collaborating on a project together, developerA is the ...
0
votes
0
answers
56
views
Need to onboard content to GitHub with branches that have disjoint history
I am trying to onboard some code to GitHub Enterprise and am experiencing a lot of difficulty. I am attempting to build a pipeline of sorts using VMware vRO 8.x in a brownfield scenario. These four ...
0
votes
1
answer
358
views
How to handle git conflict in this scenario
In our Deployment process, the Dev would create a feature branch from the main. Add their changes and when ready to be merged to lower env branches like QA or UAT, they will create pull requests. When ...
0
votes
2
answers
298
views
Automatically resolve conflicts during rebase when files are deleted
I did a massive search and replace in a large codebase of multiple strings, and created many new commits. Between the time when I started, and when I tried to complete the PR, some of the files had ...
0
votes
0
answers
29
views
What exactly does "Shelve base revisions of files under distributed version control systems" do in IntelliJ?
This is the official description of the docs
If this option is enabled, the base revision of files will be saved to
a shelf that will be used during a 3-way merge if applying a shelf
leads to ...
3
votes
1
answer
91
views
Why is the file I expect to be present missing after the final merge commit in Mercurial?
I ran into a situation in Mercurial at work where I would expect a file to exist, but it doesn't and I'd like to better understand why. I've put together a repro of the issue. In this repro I would ...
0
votes
0
answers
103
views
'Reset status with changes' is resetting on every merge conflict
We have a PR release process (classic) that runs tests and posts a status when it completes. PRs without conflicts are completing and merging in successfully, but PRs with conflicts are failing to ...
0
votes
1
answer
234
views
Is git able to resolve any conflict on the remote?
In some situations while using git you are not able to push your commits due to commits on the remote branch, which you do not have on your local branch. You pull first and sometimes the conflicts are ...
0
votes
0
answers
13
views
rebase mybranch with master when we have 20-30 number of commits
I am trying to rebase mybranch with master and changes are a lot. I am getting so many merge conflict and have 20-30 number of commits. I even tried to squash all commits and rebase it but that also ...
0
votes
1
answer
2k
views
Databricks Error: Cannot perform Merge as multiple source rows matched and attempted to modify the same target row in the Delta table conflicting way
I am attempting to carry the following merge statement with PySpark on the table below (please note, this is my first attempt at creating a table on Stack Overflow using HTML snippet, so I have it ...
1
vote
1
answer
115
views
jGIT Detect Conflicts by Commit&Push and Pull
Beside merging branches, GIT can have conflicts by
Commit/Push ( if a file in GIT has been modified meanwhile
by Pull, if the local file has been modified by me.
How can I list this conflicts before ...
1
vote
0
answers
52
views
Resuming merge conflict resolution in a remote repository
Following on from GitHub subtree merge requests, I've been pondering whether a merge conflict that arises during a(n automated) git subtree pull could easily be "stored" somewhere in order ...
0
votes
1
answer
40
views
Git merge disable auto apply code changes
I have a branch called upgradeRN and master, when i tried to pull master into upgradeRN there's some conflict files, so i used git pull --no-ff [remote] master
let say my foo.txt in upgradeRN branch ...
0
votes
1
answer
1k
views
GitLab says merge conflicts must be resolved but there are no conflicts
I have a feature/new-feature branch that I'm trying to fast-forward merge into qc branch. I've been doing this all this time without issues, when all of a sudden today, Gitlab does not allow me to ...
0
votes
1
answer
104
views
"Rejected" line of code in merge conflict. Now I can't get it to show up again in merge
I'm new to the development world and it's my first question here I'm thankful for constructive input regarding my problem and also my question build-up. Let's get to the point.
I have Branch A and ...