Skip to content

Commit 76a26af

Browse files
committed
Git: compare two branches
1 parent 88ffe3f commit 76a26af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Useful Actions/Commands
2323
### Show Log with File Changes
2424
`log --stat` will display the log with file changes for each commit.
2525

26+
### Compare Two Branches
27+
To compare the *commits*, use `git cherry -v otherbranchname`.
28+
29+
To compare the actual *code* changes, use `git diff otherbranchname`.
30+
2631

2732
Configure Git for Both Work & Personal Profiles
2833
-----------------------------------------------

0 commit comments

Comments
 (0)