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

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

  •  
  •   unco020511 · Jul 19, 2021 · 4223 views
    This topic created in 1778 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
        1
    chaleaoch  
       Jul 19, 2021
    Fork
    ch2
        3
    ch2  
       Jul 19, 2021
    idea 是开源的
    aflow
        5
    aflow  
       Jul 19, 2021   ❤️ 1
    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
        6
    lawfun  
       Jul 19, 2021
    m1 上的 fork 经常卡死
    unco020511
        7
    unco020511  
    OP
       Jul 19, 2021
    @xgfan #2 感谢,有用,已配置上,就是冷启动有些太慢了
    unco020511
        8
    unco020511  
    OP
       Jul 19, 2021   ❤️ 1
    @SimonOne #4
    @aflow #5

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