• 请不要在回答技术问题时复制粘贴 AI 生成的内容
unco020511
V2EX  ›  程序员

IDEA 的 diff tool 和 merge tool 可以单独给外部使用吗

  •  
  •   unco020511 · Jul 19, 2021 · 4733 views
    This topic created in 1934 days ago, the information mentioned may be changed or developed.

    因为习惯了使用 IDEA 的 merge & diff,觉得逻辑清晰好用,别的工具(例如 beyond compare)用不惯,想单独给一些 svn/git 客户端作为 merge&diff tool 使用,比如 source/cornerstone 这些工具可以配置外部的 diff tool

    平台:mac

    12 replies  •  2023-05-23 09:12:00 +08:00
    chaleaoch
    chaleaoch
    Jul 19, 2021
    1
    Fork
    ch2
    ch2
    Jul 19, 2021
    3
    idea 是开源的
    aflow
    aflow
    Jul 19, 2021❤️1
    5
    git mergetool -t 了解下,你可以指定 idea 作为解决冲突的工具,可以在.gitconfig 下配置
    ```

    [merge]
    tool = intellij
    [mergetool "intellij"]
    cmd = cmd.exe //c "\"C:/Program Files (x86)/IntelliJ IDEA Community Edition 12.0/bin/idea.bat\" merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
    trustExitCode = true
    ```
    设置你自己的 idea 路径,然后使用 git mergetool -t intellij 就可以使用 idea 来解决冲突了,就是启动慢了点
    lawfun
    lawfun
    Jul 19, 2021
    6
    m1 上的 fork 经常卡死
    unco020511
    unco020511
    OP
    Jul 19, 2021
    7
    @xgfan #2 感谢,有用,已配置上,就是冷启动有些太慢了
    unco020511
    unco020511
    OP
    Jul 19, 2021❤️1
    8
    @SimonOne #4
    @aflow #5

    谢谢,学习了,之前不知道这些工具还可以单独配置
    Puteulanus
    Puteulanus
    Jul 19, 2021
    9
    之前试了几个,感觉 beyond compare 的合并逻辑好像要智能一点,基本不需要或者只需要很少的手动修改
    NoUltimate
    NoUltimate
    Jul 19, 2021
    10
    试试 fork 客户端?
    nothingLeft
    nothingLeft
    Jul 20, 2021
    11
    我还是习惯用 BC,不过没钱
    monetto
    monetto
    May 23, 2023
    12
    单独装个老版的社区版试试呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 14:42 · PVG 22:42 · LAX 06:42 · JFK 09:42
    ♥ Do have faith in what you're doing.