# Git Quickie: Branch Comparison

If you want to check what has been changed, you usually use `git diff one-branch another` , right?

But the problem is that it produces a lot of output that in some cases is not needed.

So there is a nice shortcut in case you want to compare two branches quickly without caring about commits. The `--name-only` param will list the file names that are different:

```bash
git diff --name-only dev main
```

How often do you check diff? What are the most common use cases for it? I did this only once or twice in console but it was fun :)
