1

A project has two branches: master and dev.

Suppose a folder was removed from the dev branch, but not the master.

If a commit is sent to GitLab, will there be a conflict when merging?

SwissCodeMen
  • 4,222
  • 8
  • 24
  • 34

2 Answers2

2

There might be tree conflicts if on the other branch one of those deleted files is modified, or renamed.

eftshift0
  • 26,375
  • 3
  • 36
  • 60
1

Conflicts occur when there are different changes to the same lines of code in the same file on each branch. So the only way to be conflicts here is if some other work on master that modifies these files in some way, either by editing their contents or deleting or moving them.

Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268