Files
30-seconds-of-code/snippets/difference-between-branches.md
Isabelle Viktoria Maciohsek ed2f41b0d8 Bake dates into snippets
2021-06-13 19:47:48 +03:00

464 B

title, tags, firstSeen, lastUpdated
title tags firstSeen lastUpdated
View difference between two branches branch,intermediate 2021-04-08T16:30:44+03:00 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`