Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve Conflict: Deleted in source but modified in destination ?

Alex Pons
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2018

I found this:

https://confluence.atlassian.com/bitbucket/resolve-merge-conflicts-704414003.html

but there are no examples about "Deleted in source but modified in destination"

I want to delete the file in destination too.

1 answer

1 accepted

6 votes
Answer accepted
Isabella Stephens
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2018

Hi Alex,

You can do this with a slight modification to the instructions you posted, if you follow the steps under "Resolving the conflict between git branches".

  • Steps 1 to 4 should be the same.
  • At this point, instead of resolving conflicts (as demonstrated in steps 5 and 6), you want to delete the file (for example by running "rm <path_to_your_file>").
  • Steps 7 and 8 will be the same as in the linked instructions.

It seems counterintuitive to "git add" a file that you want to delete, as step 7 instructs, but this will tell git you want to track the change you've made, which in this case was to delete the file.

Cheers,

Isabella - Atlassian

Alex Pons
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 18, 2018

thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events