128

私のgitプロジェクトには(Windows)SourceTreeを使用しています。コマンドプロンプトまたはLinuxターミナルで実行できます。

しかし、対話的かつ視覚的に競合を解決する良い方法があるかどうか疑問に思っています。たとえば、プルが競合を検出すると、GUI ベースの競合ツール (P4Merge など) がポップアップします。出来ますか?

私は常に手動で競合を解決していますが、これは苦痛です。

これは、たとえば、pullSourceTree からの git メッセージです。

git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master
From W:\repo\
 * branch            master     -> FETCH_HEAD   

Updating 33c07bf..41e0249

error: Your local changes to the following files would be overwritten by merge:
    foo.cpp
    goo.cpp
    goo.hpp
Please, commit your changes or stash them before you can merge.
Aborting    

Completed with errors, see above.
4

3 に答える 3

5

Resolve Conflicts->Content メニューが無効になっている場合、1 つが保留中のファイル リストにある可能性があります。ドロップダウン (上部) から [競合するファイル] オプションを選択する必要があります。

それが役に立てば幸い

于 2015-03-31T16:41:28.217 に答える