1

この質問は何度も寄せられており、提供されている解決策を試しましたが、うまくいきませんでした。そう ...

master と test_branch があります

Admin@paul MINGW64 ~/my-project (master)
$ git diff master test_branch

5 つのファイルと非常に多くのコミットが表示されます。しかし、私がするとき:

Admin@paul MINGW64 ~/my-project (master)
$ git pull origin test_branch

From https://bitbucket.org/clientname/my_project
 * branch            test_branch -> FETCH_HEAD
Auto-merging page/test1.java
CONFLICT (content): Merge conflict in page/test1.java
Automatic merge failed; fix conflicts and then commit the result.

競合を修正し、テストを実行して失敗します。プルではすべての変更が反映されず、ファイル test1.java の場合、すべてではなく 1 行または 2 行の競合しかないためです。

私も試してみgitkましたが、それは理解しにくい非常に複雑な Web のような構造を示しています。

4

1 に答える 1

0

地元ではなく、あなたがpull夢中になっている特定の理由はありますか? 通常、リモートに新しい変更がある場合は、次のことを行います。mastertest_branchtest_branch

git checkout test_branch
git pull origin test_branch

test_branch変更を に取り込もうとしている場合、その操作は通常、ではなくmasterを使用してローカルで行われます。mergepull

于 2016-08-18T05:09:16.377 に答える