# Compare today's code with an earlier commit

DevFeed: [Compare today's code with an earlier commit](<https://devfeed.tech/articles/compare-today-s-code-with-an-earlier-commit-92864.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/visualstudio/compare-todays-code-with-an-earlier-commit/>)

Author: Leah Tran

Published: 2026-10-21T14:00:30Z

Content type: release

Language: en

Sources: [Visual Studio](<https://devfeed.tech/sources/visual-studio-blog.md>)

Topics: [Visual Studio](<https://devfeed.tech/topics/visual-studio.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2026](<https://devfeed.tech/tags/2026.md>), [3](<https://devfeed.tech/tags/3.md>), [branch](<https://devfeed.tech/tags/branch.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [change](<https://devfeed.tech/tags/change.md>), [code](<https://devfeed.tech/tags/code.md>), [commit](<https://devfeed.tech/tags/commit.md>), [commits](<https://devfeed.tech/tags/commits.md>), [community](<https://devfeed.tech/tags/community.md>), [compare](<https://devfeed.tech/tags/compare.md>), [developer](<https://devfeed.tech/tags/developer.md>), [developer-community](<https://devfeed.tech/tags/developer-community.md>), [diffs](<https://devfeed.tech/tags/diffs.md>), [feature](<https://devfeed.tech/tags/feature.md>), [leaving](<https://devfeed.tech/tags/leaving.md>), [studio](<https://devfeed.tech/tags/studio.md>), [visual-studio](<https://devfeed.tech/tags/visual-studio.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Visual Studio 2026 version 18.11 adds **Compare with Working Tree**, letting you compare a historical commit against your current code without checking out that commit or leaving your branch. Open commit history or the branch list, right-click the commit, and choose the command. The compare view uses the selected commit as the baseline and lists every file that differs from the working tree, so the results include uncommitted changes as well as changes in that commit.

## Source excerpt

Compare a historical commit with your working tree without checking out the commit or leaving your branch. The post Compare today's code with an earlier commit appeared first on Visual Studio Blog.