Merge conflict occur when I committed but didn’t push a file named hello.c . At the same time, other developer also edited hello.c , and added a new file called world.c. And he committed and pushed the two files.
So, I use ‘git pull’ to update my working tree.Oops! There are conflicts.
hello.c is a conflict file.
world.c which state is added exists in my working tree.
In the case, I edit the hello.c and resolve the merge conflict.
However, git demand me to commit world.c again. Otherwise, world.c will be deleted in the repository.
Why does git demand me to commit again? How can I resolve this conflict without committing again world.c?
Thanks a lot.