Files
30-seconds-of-code/snippets/git/s/difference-between-branches.md
2023-05-07 16:07:29 +03:00

483 B

title, type, language, tags, author, cover, dateModified
title type language tags author cover dateModified
View difference between two branches snippet git
branch
chalarangelo two-doors 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>.
git diff <branch>..<other-branch>
git diff patch-1..patch-2
# Displays the difference between branches `patch-1` and `patch-2`