Brad Parks
Brad Parks

Reputation: 72001

git - Is there a way for me to literally diff 2 branches?

I find sometimes I like to compare 2 branches using a diff tool that knows nothing about git.

So basically, a way to do a git diff that isn't version control aware.

For example, assume I had 2 branches I wanted to compare, master and develop.

What I've been doing is

Is there a way to do this with git itself, without having to check the branches out to 2 separate folders?

Upvotes: 0

Views: 48

Answers (1)

Piotr Wittchen
Piotr Wittchen

Reputation: 3922

Maybe just do:

git diff master..develop

Reference: Comparing two branches in Git?

Upvotes: 2

Related Questions