Reputation: 72001
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
.
myrepo_master
-> myrepo checked out to mastermyrepo_develop
-> myrepo checked out to developIs there a way to do this with git itself, without having to check the branches out to 2 separate folders?
Upvotes: 0
Views: 48
Reputation: 3922
Maybe just do:
git diff master..develop
Reference: Comparing two branches in Git?
Upvotes: 2