Nest all content into snippets
This commit is contained in:
22
snippets/git/s/difference-between-branches.md
Normal file
22
snippets/git/s/difference-between-branches.md
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
title: View difference between two branches
|
||||
type: snippet
|
||||
language: git
|
||||
tags: [branch]
|
||||
author: chalarangelo
|
||||
cover: two-doors
|
||||
dateModified: 2021-04-13T21:10:59+03:00
|
||||
---
|
||||
|
||||
Displays the difference between two branches.
|
||||
|
||||
- Use `git diff <branch>..<other-branch> ` to view the difference between `<branch>` and `<other-branch>`.
|
||||
|
||||
```shell
|
||||
git diff <branch>..<other-branch>
|
||||
```
|
||||
|
||||
```shell
|
||||
git diff patch-1..patch-2
|
||||
# Displays the difference between branches `patch-1` and `patch-2`
|
||||
```
|
||||
Reference in New Issue
Block a user