githubgithub-desktop

GitHub desktop: Difference between 'Do not include this file' and 'use the modified file'


I am resolving some merging issues in my project, and I noticed there's some files that don't exist on the branch that I am trying to merge:

enter image description here

If I click on "Resolve", I am presented with 2 options:

  1. Do not include this file on (my branch name)
  2. Use the modified file from (my main branch)

I want to know the difference between this two options.


Solution

  • 'Do not include this file on (my branch name)' will mean that the outcome of the merge will not include the file from your main branch, as it was before.

    'Use the modified file from (my main branch)' will mean that the outcome of the merge will include the new file from your main branch.

    Which option makes the most sense depends on context: