--- title: View difference between two branches tags: branch,intermediate --- Displays the difference between two branches. - Use `git diff .. ` to view the difference between `` and ``. ```sh git diff .. ``` ```sh git diff patch-1..patch-2 # Displays the difference between branches `patch-1` and `patch-2` ```