--- title: View difference between two branches tags: branch,intermediate firstSeen: 2021-04-08T16:30:44+03:00 lastUpdated: 2021-04-13T21:10:59+03:00 --- Displays the difference between two branches. - Use `git diff .. ` to view the difference between `` and ``. ```shell git diff .. ``` ```shell git diff patch-1..patch-2 # Displays the difference between branches `patch-1` and `patch-2` ```