如何将 VSCodium 设置为 git difftool
how to set VSCodium as git difftool
当我使用 git difftool
时,我尝试在 Fedora linux 中将 VS-codium(VSCode[Visual-Studio Code] 没有遥测数据)设置为 git difftool命令我有一个错误,因为 --wait
命令不存在。
我在终端中使用了这些命令:
git config --global diff.tool codium
git config --global difftool.codium.cmd "codium --wait --diff $LOCAL $REMOTE"
.
我也尝试过这个解决方案。
# Add the following to your .gitconfig file.
[diff]
tool = codium
[difftool]
prompt = false
[difftool "codium"]
cmd = codium "$LOCAL" "$REMOTE"
对于上述解决方案,当我使用 git difftool
命令时,两个 windows 将被打开,但它们是空的
我想我找到了解决问题的方法:
in .gitconfig file(git config --global -e
) i added "--diff" "--wait" and it work
[diff]
tool = codium
[difftool]
prompt = false
[difftool "codium"]
cmd = codium "$LOCAL" "$REMOTE" "--diff" "--wait"
当我使用 git difftool
时,我尝试在 Fedora linux 中将 VS-codium(VSCode[Visual-Studio Code] 没有遥测数据)设置为 git difftool命令我有一个错误,因为 --wait
命令不存在。
我在终端中使用了这些命令:
git config --global diff.tool codium
git config --global difftool.codium.cmd "codium --wait --diff $LOCAL $REMOTE"
.
我也尝试过这个解决方案。
# Add the following to your .gitconfig file.
[diff]
tool = codium
[difftool]
prompt = false
[difftool "codium"]
cmd = codium "$LOCAL" "$REMOTE"
对于上述解决方案,当我使用 git difftool
命令时,两个 windows 将被打开,但它们是空的
我想我找到了解决问题的方法:
in .gitconfig file(
git config --global -e
) i added "--diff" "--wait" and it work[diff] tool = codium [difftool] prompt = false [difftool "codium"] cmd = codium "$LOCAL" "$REMOTE" "--diff" "--wait"