I use Vscode to work on a large project on a remote machine with the SSH extension. I love the built-in source control panel for reviewing changes I have made each time I commit. But now say I have been working on UnstableBranch
for a few weeks and have made many changes and many commits. I am ready to merge changes into MoreStableBranch
, but I may not want to merge all changes, and I can't remember every change that has been committed on UnstableBranch
. Before I submit a PR, I want to review all changes made to UnstableBranch
so I can keep the ones I want and not merge the ones I don't.
At the command line I can do this with git diff MoreStableBranch
but I want to review the changes using Vscode's side-by-side UI. I tried adding this to my .gitconfig:
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
And then when I run git difftool MoreStableBranch
from the integrated SSH terminal within Vscode, I am prompted to open the files one-by-one. This works, but I would love to see the whole directory, as you can in the source control panel for uncommitted changes. I tried using the --diff-dir
option for difftool
but get an error: At least one file must be provided to wait for.
So from a remote machine, how can I pull up in Vscode all the differences between my current working directory (UnstableBranch
) and a different branch (MoreStableBranch
)?
Also, my Git version is 1.8.3.1
and I don't have permission to update it.
I use Vscode to work on a large project on a remote machine with the SSH extension. I love the built-in source control panel for reviewing changes I have made each time I commit. But now say I have been working on UnstableBranch
for a few weeks and have made many changes and many commits. I am ready to merge changes into MoreStableBranch
, but I may not want to merge all changes, and I can't remember every change that has been committed on UnstableBranch
. Before I submit a PR, I want to review all changes made to UnstableBranch
so I can keep the ones I want and not merge the ones I don't.
At the command line I can do this with git diff MoreStableBranch
but I want to review the changes using Vscode's side-by-side UI. I tried adding this to my .gitconfig:
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
And then when I run git difftool MoreStableBranch
from the integrated SSH terminal within Vscode, I am prompted to open the files one-by-one. This works, but I would love to see the whole directory, as you can in the source control panel for uncommitted changes. I tried using the --diff-dir
option for difftool
but get an error: At least one file must be provided to wait for.
So from a remote machine, how can I pull up in Vscode all the differences between my current working directory (UnstableBranch
) and a different branch (MoreStableBranch
)?
Also, my Git version is 1.8.3.1
and I don't have permission to update it.
1 Answer
Reset to default 0It looks like VScode doesn't support directory diff, and does not plan to: see issue #98197.
You will either have to test for extensions that claim to do so, or get imaginative using options for --diff ...
.