我在Windows上安装了Pycharm,并在Ubuntu安装中(在Windows内,没有virtualbox)允许我运行bash命令。
通常,我在Ubuntu安装上使用git(安装在它上面,而不是Windows上),并且我想使用Pycharm的git difftool。我已经编辑了〜/ .gitconfig文件,如下所示:
[diff]
tool = pycharm
[difftool "pycharm"]
cmd = '/mnt/c/Program Files/JetBrains/PyCharm 2018.3.3/bin/pycharm.exe' diff "$LOCAL" "$REMOTE"
[merge]
tool = pycharm
[mergetool "pycharm"]
cmd = '/mnt/c/Program Files/JetBrains/PyCharm 2018.3.3/bin/pycharm.exe' merge "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
keepBackup = false
当我在bash命令行上使用'git difftool'时,会发生以下情况:
正常工作。但是,此后该文件不会在Pycharm的difftool中打开。我不知道这是否是因为“ $ LOCAL”和“ $ REMOTE”值未正确传递...
我该如何解决?