18 lines
382 B
Markdown
18 lines
382 B
Markdown
---
|
|
title: View difference between two branches
|
|
tags: branch,intermediate
|
|
---
|
|
|
|
Displays the difference between two branches.
|
|
|
|
- Use `git diff <branch>..<other-branch> ` to view the difference between `<branch>` and `<other-branch>`.
|
|
|
|
```sh
|
|
git diff <branch>..<other-branch>
|
|
```
|
|
|
|
```sh
|
|
git diff patch-1..patch-2
|
|
# Displays the difference between branches `patch-1` and `patch-2`
|
|
```
|