The problem of merging git branches to overwrite the code?

merge the code of another branch on the main branch. The code of one class in the main branch is more than that in the other branch, but there is no hint in merge. After merge, it is found that there is no more code in the class of the main branch. I don"t understand why git did this.

Git
Jun.13,2022
Menu