I’m working on a project on a given branch in VSCode, and want to compare my current file with the contents of the same file in a previous commit on a different branch. I think I can do this with the
diff command, but I want to do it visually in VSCode. Does anyone know how to do this?
In GitLens, you can run the editor command "Open changes with Branch or or Tag…". You can open the editor commands by pressing
Answered By – Ali Heikal