commit the file only belongs to branch 2

You will be successful!!!
Merge remote-tracking branch 'origin/branch2'