# TIL Rider can show a diff of a directory between two branches

Today I learnt that you can right–click on any project or directory within the Solution panel, and under the Git menu there is the option to Compare with Branch or Tag (or a separate option to Compare with Revision). This allows you to easily find all changes between two branches within a specific folder.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1768389953657/6e80cdd9-999a-491e-86cc-043e5743a038.png align="center")

Clicking this opens a new panel containing the list of changed files, and clicking on the files shows the diffs in the same UI as other diffs within Rider.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1768390067867/51d58c1a-5afd-4372-81cf-683dbab3bd98.png align="center")

I always like to find new features and tools which I already have access to. This feature was useful for me today, and I daresay it will be useful again.

As an aside, this is the git command to get a diff of all changes within a specified directory on the current branch since it diverged from `develop`.

```bash
git diff develop...HEAD -- Path/To/Directory
```

If there’s a lot, you can append `| clip` to copy the output to your clipboard, or append `> diff.txt` to put it in a new text file.
