git eclipse in conflict resolution

Two people at the same time you modify a file. Or you accidentally modify someone else's files, or someone else accidentally modifying your objects inadvertently submitted to a remote plant library.
For example: It is now a factory remote file library is this:
Here Insert Picture Description
I want to change it to this:
Here Insert Picture Description
Obviously there will be a conflict
then you can
on the project ------ Synchroze Workspace (synchronous comparison) Of course, this step can be omitted team
Here Insert Picture Description
there is a conflict, then this will be displayed in red
Here Insert Picture Description

Then on the right you can see
Here Insert Picture Description
first the file Add to index

Then do their own modification submitted by local record
Here Insert Picture Description
important things to say three times: Be sure not to push the remote, must not push to a remote, must not push to the remote
and Pull
and then in the local file inside a modified
Here Insert Picture Description
and then saved

Finally Add to index ---- commit ---- push

Successful conflict resolution
overall steps:

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_43077857/article/details/91812904