git - source merge branch
高洛峰
高洛峰 2017-05-02 09:34:38
0
1
539

The operation is like this:
Develop A: Change the A file code. commit, push.
Develop B: Change the B file code. commit, pull, merge.

Both operations are performed in the sourceTree graphical interface.

In rare cases, old versions will be merged during merge. See picture below.

sourceTree version: v2.1.
git version: 2.6.4.

A file changes:

merge:

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
阿神

B You need to rebase first and then commit. The purpose of rebase is to make your changes based on the modification of file A.

The root cause is that conflicts will occur in this case, and git cannot determine which version is the final version. If you only use merge, it will directly think that B has changed the A file back.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template